diff --git a/components/dashboard/src/Menu.tsx b/components/dashboard/src/Menu.tsx index 98f2a58c8107e6..db3e69d66443b1 100644 --- a/components/dashboard/src/Menu.tsx +++ b/components/dashboard/src/Menu.tsx @@ -97,9 +97,12 @@ export default function Menu() { // Hide most of the top menu when in a full-page form. const isMinimalUI = inResource(location.pathname, ["new", "teams/new", "open"]); const isWorkspacesUI = inResource(location.pathname, ["workspaces"]); - const isAccountUI = inResource(location.pathname, [ + const isPersonalSettingsUI = inResource(location.pathname, [ "account", "notifications", + "billing", + "plans", + "teams", "variables", "keys", "integrations", @@ -244,7 +247,7 @@ export default function Menu() { const onFeedbackFormClose = () => { setFeedbackFormVisible(false); }; - const isTeamLevelActive = !projectSlug && !isWorkspacesUI && !isAccountUI && !isAdminUI && teamOrUserSlug; + const isTeamLevelActive = !projectSlug && !isWorkspacesUI && !isPersonalSettingsUI && !isAdminUI && teamOrUserSlug; const renderTeamMenu = () => { if (!teams || teams.length === 0) { return ( @@ -467,7 +470,7 @@ export default function Menu() { {isFeedbackFormVisible && } - {!isMinimalUI && !prebuildId && !isWorkspacesUI && !isAccountUI && !isAdminUI && ( + {!isMinimalUI && !prebuildId && !isWorkspacesUI && !isPersonalSettingsUI && !isAdminUI && (