Skip to content

Commit

Permalink
Mobile: hide bottom nav on any sub page (calcom#4626)
Browse files Browse the repository at this point in the history
Co-authored-by: gitstart <[email protected]>
Co-authored-by: Nitesh Singh <[email protected]>
Co-authored-by: Matheus Muniz <[email protected]>
Co-authored-by: hustle-ps <[email protected]>
Co-authored-by: Olusanya Timothy <[email protected]>
Co-authored-by: Thiago Nascimbeni <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
  • Loading branch information
8 people authored Sep 21, 2022
1 parent e2747f8 commit 7d1065d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/ui/v2/core/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,16 @@ function MobileNavigationContainer() {

const MobileNavigation = () => {
const isEmbed = useIsEmbed();
const router = useRouter();
const isSubNav = router.pathname.split("/").length > 3;

return (
<>
<nav
className={classNames(
"bottom-nav fixed bottom-0 z-30 -mx-4 flex w-full border border-t border-gray-200 bg-gray-50 bg-opacity-40 px-1 shadow backdrop-blur-md md:hidden",
isSubNav
? "hidden"
: "bottom-nav fixed bottom-0 z-30 -mx-4 flex w-full border border-t border-gray-200 bg-gray-50 bg-opacity-40 px-1 shadow backdrop-blur-md md:hidden",
isEmbed && "hidden"
)}>
{mobileNavigationBottomItems.map((item) => (
Expand Down

0 comments on commit 7d1065d

Please sign in to comment.