diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 1c4f38b033..8e42759f38 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1458,6 +1458,8 @@ "event_type_duplicate_copy_text": "{{slug}}-copy", "set_as_default": "Set as default", "hide_eventtype_details": "Hide EventType Details", + "show_navigation": "Show navigation", + "hide_navigation": "Hide navigation", "verification_code_sent": "Verification code sent", "verified_successfully": "Verified successfully", "wrong_code": "Wong verification code", diff --git a/packages/features/ee/teams/components/TeamsUpgradeBanner.tsx b/packages/features/ee/teams/components/TeamsUpgradeBanner.tsx index 2142dbad04..fff6dd339a 100644 --- a/packages/features/ee/teams/components/TeamsUpgradeBanner.tsx +++ b/packages/features/ee/teams/components/TeamsUpgradeBanner.tsx @@ -16,9 +16,11 @@ export function TeamsUpgradeBanner() { showToast(error.message, "error"); }, }); + if (!data) return null; const [membership] = data; if (!membership) return null; + return (

- {["warning", "error"].includes(variant) && ( -

- {actions &&
{actions}
} + {actions &&
{actions}
}
{typeof onClose === "function" && ( + + + + + +
+ + {/* logo icon for tablet */} - - + + -
- - - + + +
+ + {isCalcom && } + +
+
+ + + + + +
- - -
- - {/* logo icon for tablet */} - - - - - - - -
- - {isCalcom && } - {/* Save it for next preview version -
- -
*/} - -
- - - - - - -
- - + + + + ); } @@ -855,35 +853,17 @@ export function ShellMain(props: LayoutProps) { ); } -const SettingsSidebarContainerDefault = () => null; - function MainContainer({ - SettingsSidebarContainer: SettingsSidebarContainerProp = , MobileNavigationContainer: MobileNavigationContainerProp = , TopNavContainer: TopNavContainerProp = , ...props }: LayoutProps) { - const [sideContainerOpen, setSideContainerOpen] = props.drawerState || [false, noop]; - return ( -
+
{/* show top navigation for md and smaller (tablet and phones) */} {TopNavContainerProp} - {/* The following is used for settings navigation on medium and smaller screens */} -
{ - setSideContainerOpen(false); - }} - /> - {SettingsSidebarContainerProp}
- {/* add padding to top for mobile when App Bar is fixed */} -
{!props.withoutMain ? {props.children} : props.children} {/* show bottom navigation for md and smaller (tablet and phones) on pages where back button doesn't exist */} @@ -906,7 +886,7 @@ function TopNav() { <>