diff --git a/components/Modal/Collection/TeamManagement.tsx b/components/Modal/Collection/TeamManagement.tsx index 0dfa92e..b625570 100644 --- a/components/Modal/Collection/TeamManagement.tsx +++ b/components/Modal/Collection/TeamManagement.tsx @@ -47,6 +47,7 @@ export default function TeamManagement({ id: null, name: "", username: "", + image: "", }); useEffect(() => { @@ -401,7 +402,7 @@ export default function TeamManagement({ >
{text} diff --git a/layouts/LinkLayout.tsx b/layouts/LinkLayout.tsx index 4850802..b2c135e 100644 --- a/layouts/LinkLayout.tsx +++ b/layouts/LinkLayout.tsx @@ -93,11 +93,14 @@ export default function LinkLayout({ children }: Props) {
By signing up, you agree to our{" "} diff --git a/pages/settings/account.tsx b/pages/settings/account.tsx index d177025..0642424 100644 --- a/pages/settings/account.tsx +++ b/pages/settings/account.tsx @@ -86,20 +86,6 @@ export default function Account() { if (response.ok) { toast.success("Settings Applied!"); - - // if (user.email !== account.email) { - // update({ - // id: data?.user.id, - // }); - - // signOut(); - // } else if ( - // user.username !== account.username || - // user.name !== account.name - // ) - // update({ - // id: data?.user.id, - // }); } else toast.error(response.data as string); setSubmitLoader(false); }; @@ -190,7 +176,7 @@ export default function Account() {
Updating this field will change your billing email as well
@@ -388,7 +374,7 @@ export default function Account() {This will permanently delete ALL the Links, Collections, Tags, and archived data you own.{" "} - {process.env.NEXT_PUBLIC_STRIPE_IS_ACTIVE + {process.env.NEXT_PUBLIC_STRIPE ? "It will also cancel your subscription. " : undefined}{" "} You will be prompted to enter your password before the deletion diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsx index 185f2a7..953d1ee 100644 --- a/pages/settings/billing.tsx +++ b/pages/settings/billing.tsx @@ -6,8 +6,7 @@ export default function Billing() { const router = useRouter(); useEffect(() => { - if (!process.env.NEXT_PUBLIC_STRIPE_IS_ACTIVE) - router.push("/settings/profile"); + if (!process.env.NEXT_PUBLIC_STRIPE) router.push("/settings/profile"); }, []); return ( diff --git a/pages/settings/delete.tsx b/pages/settings/delete.tsx index a0096e1..bd0c632 100644 --- a/pages/settings/delete.tsx +++ b/pages/settings/delete.tsx @@ -72,7 +72,7 @@ export default function Password() {
This will permanently delete all the Links, Collections, Tags, and archived data you own. It will also log you out - {process.env.NEXT_PUBLIC_STRIPE_IS_ACTIVE + {process.env.NEXT_PUBLIC_STRIPE ? " and cancel your subscription" : undefined} . This action is irreversible! @@ -91,7 +91,7 @@ export default function Password() { />