From 2ea7ddc1aa77492f1d0473ffcf05e32d3ae1a5a4 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 27 May 2022 21:27:37 -0700 Subject: [PATCH] Hide mobile bottom bar if Manifold is iframed --- web/components/nav/nav-bar.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/components/nav/nav-bar.tsx b/web/components/nav/nav-bar.tsx index 40a5aacd..b279e470 100644 --- a/web/components/nav/nav-bar.tsx +++ b/web/components/nav/nav-bar.tsx @@ -16,6 +16,7 @@ import { formatMoney } from 'common/util/format' import { Avatar } from '../avatar' import clsx from 'clsx' import { useRouter } from 'next/router' +import { useIsIframe } from 'web/hooks/use-is-iframe' function getNavigation(username: string) { return [ @@ -43,6 +44,11 @@ export function BottomNavBar() { const user = useUser() + const isIframe = useIsIframe() + if (isIframe) { + return null + } + const navigationOptions = user === null ? signedOutNavigation