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
d24c62ec
Unverified
Commit
d24c62ec
authored
Nov 28, 2022
by
aballerr
Committed by
GitHub
Nov 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Minor polish fixes (#5407)
* Loading state fixes, make volume lowercase, remove loading circle
parent
2ea70d18
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
CollectionNfts.tsx
src/nft/components/collection/CollectionNfts.tsx
+1
-1
CollectionPageSkeleton.tsx
src/nft/components/collection/CollectionPageSkeleton.tsx
+1
-8
CollectionStats.tsx
src/nft/components/collection/CollectionStats.tsx
+1
-1
App.tsx
src/pages/App.tsx
+9
-1
No files found.
src/nft/components/collection/CollectionNfts.tsx
View file @
d24c62ec
...
@@ -185,7 +185,7 @@ export const CollectionNftsLoading = () => (
...
@@ -185,7 +185,7 @@ export const CollectionNftsLoading = () => (
export
const
CollectionNftsAndMenuLoading
=
()
=>
(
export
const
CollectionNftsAndMenuLoading
=
()
=>
(
<
InfiniteScrollWrapper
>
<
InfiniteScrollWrapper
>
<
Column
alignItems=
"flex-start"
position=
"relative"
width=
"full"
>
<
Column
alignItems=
"flex-start"
position=
"relative"
width=
"full"
>
<
Row
marginY=
"12"
gap=
"12"
>
<
Row
marginY=
"12"
gap=
"12"
marginBottom=
"40"
>
<
Box
className=
{
loadingAsset
}
borderRadius=
"12"
width=
{
{
sm
:
'
44
'
,
md
:
'
100
'
}
}
height=
"44"
/>
<
Box
className=
{
loadingAsset
}
borderRadius=
"12"
width=
{
{
sm
:
'
44
'
,
md
:
'
100
'
}
}
height=
"44"
/>
<
Box
<
Box
className=
{
loadingAsset
}
className=
{
loadingAsset
}
...
...
src/nft/components/collection/CollectionPageSkeleton.tsx
View file @
d24c62ec
import
Column
from
'
components/Column
'
import
Column
from
'
components/Column
'
import
Row
from
'
components/Row
'
import
Row
from
'
components/Row
'
import
{
Box
}
from
'
nft/components/Box
'
import
{
useIsMobile
}
from
'
nft/hooks
'
import
{
useIsMobile
}
from
'
nft/hooks
'
import
{
BannerWrapper
,
CollectionBannerLoading
}
from
'
nft/pages/collection
'
import
{
BannerWrapper
,
CollectionBannerLoading
}
from
'
nft/pages/collection
'
import
{
ScreenBreakpointsPaddings
}
from
'
nft/pages/collection/index.css
'
import
{
ScreenBreakpointsPaddings
}
from
'
nft/pages/collection/index.css
'
...
@@ -14,10 +13,6 @@ const CollectionDescriptionSection = styled(Column)`
...
@@ -14,10 +13,6 @@ const CollectionDescriptionSection = styled(Column)`
${
ScreenBreakpointsPaddings
}
${
ScreenBreakpointsPaddings
}
`
`
const
CollectionAssets
=
styled
(
Box
)
`
${
ScreenBreakpointsPaddings
}
`
const
StyledColumn
=
styled
(
Column
)
`
const
StyledColumn
=
styled
(
Column
)
`
width: 100%;
width: 100%;
`
`
...
@@ -38,9 +33,7 @@ export const CollectionPageSkeleton = () => {
...
@@ -38,9 +33,7 @@ export const CollectionPageSkeleton = () => {
<
CollectionStatsLoading
isMobile=
{
isMobile
}
/>
<
CollectionStatsLoading
isMobile=
{
isMobile
}
/>
<
StyledRow
>
{
ActivitySwitcherLoading
}
</
StyledRow
>
<
StyledRow
>
{
ActivitySwitcherLoading
}
</
StyledRow
>
</
CollectionDescriptionSection
>
</
CollectionDescriptionSection
>
<
CollectionAssets
>
<
CollectionNftsAndMenuLoading
/>
<
CollectionNftsAndMenuLoading
/>
</
CollectionAssets
>
</
StyledColumn
>
</
StyledColumn
>
)
)
}
}
src/nft/components/collection/CollectionStats.tsx
View file @
d24c62ec
...
@@ -306,7 +306,7 @@ const StatsRow = ({ stats, isMobile, ...props }: { stats: GenieCollection; isMob
...
@@ -306,7 +306,7 @@ const StatsRow = ({ stats, isMobile, ...props }: { stats: GenieCollection; isMob
</
StatsItem
>
</
StatsItem
>
)
:
null
}
)
:
null
}
{
stats
.
stats
?.
total_volume
?
(
{
stats
.
stats
?.
total_volume
?
(
<
StatsItem
label=
"Total
V
olume"
shouldHide=
{
false
}
>
<
StatsItem
label=
"Total
v
olume"
shouldHide=
{
false
}
>
{
totalVolumeStr
}
ETH
{
totalVolumeStr
}
ETH
</
StatsItem
>
</
StatsItem
>
)
:
null
}
)
:
null
}
...
...
src/pages/App.tsx
View file @
d24c62ec
...
@@ -252,7 +252,15 @@ export default function App() {
...
@@ -252,7 +252,15 @@ export default function App() {
{
nftFlag
===
NftVariant
.
Enabled
&&
(
{
nftFlag
===
NftVariant
.
Enabled
&&
(
<>
<>
<
Route
path=
"/nfts"
element=
{
<
NftExplore
/>
}
/>
<
Route
path=
"/nfts"
element=
{
// TODO: replace loading state during Apollo migration
<
Suspense
fallback=
{
null
}
>
<
NftExplore
/>
</
Suspense
>
}
/>
<
Route
<
Route
path=
"/nfts/asset/:contractAddress/:tokenId"
path=
"/nfts/asset/:contractAddress/:tokenId"
element=
{
element=
{
...
...
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