mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'main' into patch-1
This commit is contained in:
commit
8e4e87840a
1 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,7 @@ import { useTranslation } from "react-i18next";
|
||||||
export function UploadBackgroundImageButton() {
|
export function UploadBackgroundImageButton() {
|
||||||
const [isUploadingBackgroundImage, setIsUploadingBackgorundImage] =
|
const [isUploadingBackgroundImage, setIsUploadingBackgorundImage] =
|
||||||
useState(false);
|
useState(false);
|
||||||
const { userDetails } = useUserDetails();
|
const { hasActiveSubscription } = useUserDetails();
|
||||||
|
|
||||||
const { t } = useTranslation("user_profile");
|
const { t } = useTranslation("user_profile");
|
||||||
|
|
||||||
|
@ -47,8 +47,7 @@ export function UploadBackgroundImageButton() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!isMe || !userDetails?.subscription) return null;
|
if (!isMe || !hasActiveSubscription) return null;
|
||||||
if (userDetails.subscription.plan.name !== "plus") return null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue