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
1a9c3c36
Unverified
Commit
1a9c3c36
authored
Aug 17, 2022
by
Jack Short
Committed by
GitHub
Aug 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add a feature flagged blank collections page (#4371)
parent
91f4892b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
index.tsx
src/nft/pages/collection/index.tsx
+5
-0
App.tsx
src/pages/App.tsx
+7
-0
No files found.
src/nft/pages/collection/index.tsx
0 → 100644
View file @
1a9c3c36
export
const
Collection
=
()
=>
{
return
<
div
>
Collection Page
</
div
>
}
export
default
Collection
src/pages/App.tsx
View file @
1a9c3c36
...
...
@@ -6,6 +6,7 @@ import TopLevelModals from 'components/TopLevelModals'
import
{
useFeatureFlagsIsLoaded
}
from
'
featureFlags
'
import
{
ExploreVariant
,
useExploreFlag
}
from
'
featureFlags/flags/explore
'
import
{
NavBarVariant
,
useNavBarFlag
}
from
'
featureFlags/flags/navBar
'
import
{
Phase1Variant
,
usePhase1Flag
}
from
'
featureFlags/flags/phase1
'
import
ApeModeQueryParamReader
from
'
hooks/useApeModeQueryParamReader
'
import
{
lazy
,
Suspense
,
useEffect
}
from
'
react
'
import
{
Navigate
,
Route
,
Routes
,
useLocation
}
from
'
react-router-dom
'
...
...
@@ -42,6 +43,7 @@ import { OpenClaimAddressModalAndRedirectToSwap, RedirectPathToSwapOnly, Redirec
const
TokenDetails
=
lazy
(()
=>
import
(
'
./TokenDetails
'
))
const
Vote
=
lazy
(()
=>
import
(
'
./Vote
'
))
const
Collection
=
lazy
(()
=>
import
(
'
nft/pages/collection
'
))
const
AppWrapper
=
styled
.
div
`
display: flex;
...
...
@@ -107,6 +109,7 @@ export default function App() {
const
isLoaded
=
useFeatureFlagsIsLoaded
()
const
exploreFlag
=
useExploreFlag
()
const
navBarFlag
=
useNavBarFlag
()
const
phase1Flag
=
usePhase1Flag
()
const
{
pathname
}
=
useLocation
()
const
currentPage
=
getCurrentPageFromLocation
(
pathname
)
...
...
@@ -206,6 +209,10 @@ export default function App() {
<
Route
path=
"migrate/v2/:address"
element=
{
<
MigrateV2Pair
/>
}
/>
<
Route
path=
"*"
element=
{
<
RedirectPathToSwapOnly
/>
}
/>
{
phase1Flag
===
Phase1Variant
.
Enabled
&&
(
<
Route
path=
"/nfts/collection/:contractAddress"
element=
{
<
Collection
/>
}
/>
)
}
</
Routes
>
)
:
(
<
Loader
/>
...
...
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