Hide mobile bottom bar if Manifold is iframed

This commit is contained in:
Austin Chen 2022-05-27 21:27:37 -07:00
parent 80d5607984
commit 2ea7ddc1aa

View File

@ -16,6 +16,7 @@ import { formatMoney } from 'common/util/format'
import { Avatar } from '../avatar' import { Avatar } from '../avatar'
import clsx from 'clsx' import clsx from 'clsx'
import { useRouter } from 'next/router' import { useRouter } from 'next/router'
import { useIsIframe } from 'web/hooks/use-is-iframe'
function getNavigation(username: string) { function getNavigation(username: string) {
return [ return [
@ -43,6 +44,11 @@ export function BottomNavBar() {
const user = useUser() const user = useUser()
const isIframe = useIsIframe()
if (isIframe) {
return null
}
const navigationOptions = const navigationOptions =
user === null user === null
? signedOutNavigation ? signedOutNavigation