mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
Merge branch 'main' into patch-1
This commit is contained in:
@@ -10,7 +10,7 @@ import { useTranslation } from "react-i18next";
|
||||
export function UploadBackgroundImageButton() {
|
||||
const [isUploadingBackgroundImage, setIsUploadingBackgorundImage] =
|
||||
useState(false);
|
||||
const { userDetails } = useUserDetails();
|
||||
const { hasActiveSubscription } = useUserDetails();
|
||||
|
||||
const { t } = useTranslation("user_profile");
|
||||
|
||||
@@ -47,8 +47,7 @@ export function UploadBackgroundImageButton() {
|
||||
}
|
||||
};
|
||||
|
||||
if (!isMe || !userDetails?.subscription) return null;
|
||||
if (userDetails.subscription.plan.name !== "plus") return null;
|
||||
if (!isMe || !hasActiveSubscription) return null;
|
||||
|
||||
return (
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user