Commit 4a70eb59 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

fix: rename /explore to /tokens (#4385)

* fix: rename /explore to /tokens

* name

* tokens

* oops
parent 1a7b86d1
......@@ -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>
......
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