Commit 89c0caae authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

feat: push nav icon to /?intro=true (#5731)

* feat: push nav icon to /?intro=true

* search
parent c8086e3c
import { Trans } from '@lingui/macro'
import { useWeb3React } from '@web3-react/core'
import Web3Status from 'components/Web3Status'
import { LandingRedirectVariant, useLandingRedirectFlag } from 'featureFlags/flags/landingRedirect'
import { chainIdToBackendName } from 'graphql/data/util'
import { useIsNftPage } from 'hooks/useIsNftPage'
import { Box } from 'nft/components/Box'
......@@ -80,6 +81,7 @@ export const PageTabs = () => {
const Navbar = () => {
const isNftPage = useIsNftPage()
const navigate = useNavigate()
const landingRedirectFlag = useLandingRedirectFlag()
return (
<>
......@@ -92,7 +94,10 @@ const Navbar = () => {
height="48"
className={styles.logo}
onClick={() => {
navigate('/')
navigate({
pathname: '/',
search: landingRedirectFlag === LandingRedirectVariant.Enabled ? '?intro=true' : undefined,
})
}}
/>
</Box>
......
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