Hide mobile bottom bar if Manifold is iframed
This commit is contained in:
parent
80d5607984
commit
2ea7ddc1aa
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user