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 = () => { ...@@ -70,7 +70,7 @@ const PageTabs = () => {
const Navbar = () => { const Navbar = () => {
const { pathname } = useLocation() const { pathname } = useLocation()
const showShoppingBag = pathname.startsWith('/nfts') || pathname.startsWith('/profile') const isNftPage = pathname.startsWith('/nfts') || pathname.startsWith('/profile')
return ( return (
<> <>
...@@ -80,9 +80,11 @@ const Navbar = () => { ...@@ -80,9 +80,11 @@ const Navbar = () => {
<Box as="a" href="#/swap" className={styles.logoContainer}> <Box as="a" href="#/swap" className={styles.logoContainer}>
<UniIcon width="48" height="48" className={styles.logo} /> <UniIcon width="48" height="48" className={styles.logo} />
</Box> </Box>
{!isNftPage && (
<Box display={{ sm: 'flex', lg: 'none' }}> <Box display={{ sm: 'flex', lg: 'none' }}>
<ChainSelector leftAlign={true} /> <ChainSelector leftAlign={true} />
</Box> </Box>
)}
<Row gap="8" display={{ sm: 'none', lg: 'flex' }}> <Row gap="8" display={{ sm: 'none', lg: 'flex' }}>
<PageTabs /> <PageTabs />
</Row> </Row>
...@@ -98,10 +100,12 @@ const Navbar = () => { ...@@ -98,10 +100,12 @@ const Navbar = () => {
<Box display={{ sm: 'none', lg: 'flex' }}> <Box display={{ sm: 'none', lg: 'flex' }}>
<MenuDropdown /> <MenuDropdown />
</Box> </Box>
{showShoppingBag && <ShoppingBag />} {isNftPage && <ShoppingBag />}
{!isNftPage && (
<Box display={{ sm: 'none', lg: 'flex' }}> <Box display={{ sm: 'none', lg: 'flex' }}>
<ChainSelector /> <ChainSelector />
</Box> </Box>
)}
<Web3Status /> <Web3Status />
</Row> </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