Commit 1f810f84 authored by lynn's avatar lynn Committed by GitHub

fix: remove chain selector for nft pages (#5002)

remove chain selector for nft pages
parent f6ffc68e
......@@ -70,7 +70,7 @@ const PageTabs = () => {
const Navbar = () => {
const { pathname } = useLocation()
const showShoppingBag = pathname.startsWith('/nfts') || pathname.startsWith('/profile')
const isNftPage = pathname.startsWith('/nfts') || pathname.startsWith('/profile')
return (
<>
......@@ -80,9 +80,11 @@ const Navbar = () => {
<Box as="a" href="#/swap" className={styles.logoContainer}>
<UniIcon width="48" height="48" className={styles.logo} />
</Box>
<Box display={{ sm: 'flex', lg: 'none' }}>
<ChainSelector leftAlign={true} />
</Box>
{!isNftPage && (
<Box display={{ sm: 'flex', lg: 'none' }}>
<ChainSelector leftAlign={true} />
</Box>
)}
<Row gap="8" display={{ sm: 'none', lg: 'flex' }}>
<PageTabs />
</Row>
......@@ -98,10 +100,12 @@ const Navbar = () => {
<Box display={{ sm: 'none', lg: 'flex' }}>
<MenuDropdown />
</Box>
{showShoppingBag && <ShoppingBag />}
<Box display={{ sm: 'none', lg: 'flex' }}>
<ChainSelector />
</Box>
{isNftPage && <ShoppingBag />}
{!isNftPage && (
<Box display={{ sm: 'none', lg: 'flex' }}>
<ChainSelector />
</Box>
)}
<Web3Status />
</Row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment