Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
4a70eb59
Unverified
Commit
4a70eb59
authored
Aug 17, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Aug 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: rename /explore to /tokens (#4385)
* fix: rename /explore to /tokens * name * tokens * oops
parent
1a7b86d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
constants.ts
src/components/AmplitudeAnalytics/constants.ts
+1
-1
index.tsx
src/components/Header/index.tsx
+2
-2
App.tsx
src/pages/App.tsx
+3
-3
index.tsx
src/pages/Explore/index.tsx
+1
-1
No files found.
src/components/AmplitudeAnalytics/constants.ts
View file @
4a70eb59
...
@@ -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
'
,
...
...
src/components/Header/index.tsx
View file @
4a70eb59
...
@@ -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
...
...
src/pages/App.tsx
View file @
4a70eb59
...
@@ -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
/>
}
/>
</>
</>
)
}
)
}
...
...
src/pages/Explore/index.tsx
View file @
4a70eb59
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment