fix: rename /explore to /tokens (#4385)
* fix: rename /explore to /tokens * name * tokens * oops
This commit is contained in:
parent
1a7b86d155
commit
4a70eb5956
@ -75,7 +75,7 @@ export enum SWAP_PRICE_UPDATE_USER_RESPONSE {
|
||||
* Known pages in the app. Highest order context.
|
||||
*/
|
||||
export enum PageName {
|
||||
EXPLORE_PAGE = 'explore-page',
|
||||
TOKENS_PAGE = 'tokens-page',
|
||||
POOL_PAGE = 'pool-page',
|
||||
SWAP_PAGE = 'swap-page',
|
||||
VOTE_PAGE = 'vote-page',
|
||||
|
@ -293,8 +293,8 @@ export default function Header() {
|
||||
<Trans>Swap</Trans>
|
||||
</StyledNavLink>
|
||||
{exploreFlag === ExploreVariant.Enabled && (
|
||||
<StyledNavLink id={`explore-nav-link`} to={'/explore'}>
|
||||
<Trans>Explore</Trans>
|
||||
<StyledNavLink id={`explore-nav-link`} to={'/tokens'}>
|
||||
<Trans>Tokens</Trans>
|
||||
</StyledNavLink>
|
||||
)}
|
||||
<StyledNavLink
|
||||
|
@ -84,8 +84,8 @@ function getCurrentPageFromLocation(locationPathname: string): PageName | undefi
|
||||
return PageName.VOTE_PAGE
|
||||
case '/pool':
|
||||
return PageName.POOL_PAGE
|
||||
case '/explore':
|
||||
return PageName.EXPLORE_PAGE
|
||||
case '/tokens':
|
||||
return PageName.TOKENS_PAGE
|
||||
default:
|
||||
return undefined
|
||||
}
|
||||
@ -158,7 +158,7 @@ export default function App() {
|
||||
<Routes>
|
||||
{exploreFlag === ExploreVariant.Enabled && (
|
||||
<>
|
||||
<Route path="/explore" element={<Explore />} />
|
||||
<Route path="/tokens" element={<Explore />} />
|
||||
<Route path="/tokens/:tokenAddress" element={<TokenDetails />} />
|
||||
</>
|
||||
)}
|
||||
|
@ -68,7 +68,7 @@ const Explore = () => {
|
||||
}, [location, resetFilterString])
|
||||
|
||||
return (
|
||||
<Trace page={PageName.EXPLORE_PAGE} shouldLogImpression>
|
||||
<Trace page={PageName.TOKENS_PAGE} shouldLogImpression>
|
||||
<ExploreContainer>
|
||||
<TitleContainer>Explore Tokens</TitleContainer>
|
||||
<FiltersWrapper>
|
||||
|
Loading…
Reference in New Issue
Block a user