finalizing team support

This commit is contained in:
daniel31x13
2024-10-29 18:08:47 -04:00
parent b09de5a8af
commit 665019dc59
25 changed files with 511 additions and 201 deletions
+3 -4
View File
@@ -12,7 +12,6 @@ export default function ProfileDropdown() {
const { data: user = {} } = useUser();
const isAdmin = user.id === Number(process.env.NEXT_PUBLIC_ADMIN || 1);
const DISABLE_INVITES = process.env.DISABLE_INVITES === "true";
const handleToggle = () => {
const newTheme = settings.theme === "dark" ? "light" : "dark";
@@ -74,16 +73,16 @@ export default function ProfileDropdown() {
</Link>
</li>
)}
{!DISABLE_INVITES && (
{!user.parentSubscriptionId && (
<li>
<Link
href="/team"
href="/settings/billing"
onClick={() => (document?.activeElement as HTMLElement)?.blur()}
tabIndex={0}
role="button"
className="whitespace-nowrap"
>
{t("manage_team")}
{t("invite_users")}
</Link>
</li>
)}