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 { ...@@ -75,7 +75,7 @@ export enum SWAP_PRICE_UPDATE_USER_RESPONSE {
* Known pages in the app. Highest order context. * Known pages in the app. Highest order context.
*/ */
export enum PageName { export enum PageName {
EXPLORE_PAGE = 'explore-page', TOKENS_PAGE = 'tokens-page',
POOL_PAGE = 'pool-page', POOL_PAGE = 'pool-page',
SWAP_PAGE = 'swap-page', SWAP_PAGE = 'swap-page',
VOTE_PAGE = 'vote-page', VOTE_PAGE = 'vote-page',
......
...@@ -293,8 +293,8 @@ export default function Header() { ...@@ -293,8 +293,8 @@ export default function Header() {
<Trans>Swap</Trans> <Trans>Swap</Trans>
</StyledNavLink> </StyledNavLink>
{exploreFlag === ExploreVariant.Enabled && ( {exploreFlag === ExploreVariant.Enabled && (
<StyledNavLink id={`explore-nav-link`} to={'/explore'}> <StyledNavLink id={`explore-nav-link`} to={'/tokens'}>
<Trans>Explore</Trans> <Trans>Tokens</Trans>
</StyledNavLink> </StyledNavLink>
)} )}
<StyledNavLink <StyledNavLink
......
...@@ -84,8 +84,8 @@ function getCurrentPageFromLocation(locationPathname: string): PageName | undefi ...@@ -84,8 +84,8 @@ function getCurrentPageFromLocation(locationPathname: string): PageName | undefi
return PageName.VOTE_PAGE return PageName.VOTE_PAGE
case '/pool': case '/pool':
return PageName.POOL_PAGE return PageName.POOL_PAGE
case '/explore': case '/tokens':
return PageName.EXPLORE_PAGE return PageName.TOKENS_PAGE
default: default:
return undefined return undefined
} }
...@@ -158,7 +158,7 @@ export default function App() { ...@@ -158,7 +158,7 @@ export default function App() {
<Routes> <Routes>
{exploreFlag === ExploreVariant.Enabled && ( {exploreFlag === ExploreVariant.Enabled && (
<> <>
<Route path="/explore" element={<Explore />} /> <Route path="/tokens" element={<Explore />} />
<Route path="/tokens/:tokenAddress" element={<TokenDetails />} /> <Route path="/tokens/:tokenAddress" element={<TokenDetails />} />
</> </>
)} )}
......
...@@ -68,7 +68,7 @@ const Explore = () => { ...@@ -68,7 +68,7 @@ const Explore = () => {
}, [location, resetFilterString]) }, [location, resetFilterString])
return ( return (
<Trace page={PageName.EXPLORE_PAGE} shouldLogImpression> <Trace page={PageName.TOKENS_PAGE} shouldLogImpression>
<ExploreContainer> <ExploreContainer>
<TitleContainer>Explore Tokens</TitleContainer> <TitleContainer>Explore Tokens</TitleContainer>
<FiltersWrapper> <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