From 7d1065d2288045d73cfb7f2e833b9acb58c98b9f Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:39:54 +0100 Subject: [PATCH] Mobile: hide bottom nav on any sub page (#4626) Co-authored-by: gitstart Co-authored-by: Nitesh Singh Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: hustle-ps Co-authored-by: Olusanya Timothy <48022904+seunexplicit@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Peer Richelsen --- packages/ui/v2/core/Shell.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ui/v2/core/Shell.tsx b/packages/ui/v2/core/Shell.tsx index e96623bcdb..812e7f8608 100644 --- a/packages/ui/v2/core/Shell.tsx +++ b/packages/ui/v2/core/Shell.tsx @@ -575,11 +575,16 @@ function MobileNavigationContainer() { const MobileNavigation = () => { const isEmbed = useIsEmbed(); + const router = useRouter(); + const isSubNav = router.pathname.split("/").length > 3; + return ( <>