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
42646003
Unverified
Commit
42646003
authored
Nov 17, 2022
by
Jack Short
Committed by
GitHub
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: correct collection loading (#5288)
* style: correct collection loading * review comments
parent
321b8df3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
CollectionPageSkeleton.tsx
src/nft/components/collection/CollectionPageSkeleton.tsx
+28
-10
No files found.
src/nft/components/collection/CollectionPageSkeleton.tsx
View file @
42646003
import
Column
from
'
components/Column
'
import
Row
from
'
components/Row
'
import
{
Box
}
from
'
nft/components/Box
'
import
{
Box
}
from
'
nft/components/Box
'
import
{
Column
,
Row
}
from
'
nft/components/Flex
'
import
{
useIsMobile
}
from
'
nft/hooks
'
import
{
useIsMobile
}
from
'
nft/hooks
'
import
{
CollectionBannerLoading
}
from
'
nft/pages/collection
'
import
{
CollectionBannerLoading
}
from
'
nft/pages/collection
'
import
{
COLLECTION_BANNER_HEIGHT
}
from
'
nft/pages/collection
'
import
{
COLLECTION_BANNER_HEIGHT
}
from
'
nft/pages/collection
'
import
{
ScreenBreakpointsPaddings
}
from
'
nft/pages/collection/index.css
'
import
styled
from
'
styled-components/macro
'
import
{
ActivitySwitcherLoading
}
from
'
./ActivitySwitcher
'
import
{
ActivitySwitcherLoading
}
from
'
./ActivitySwitcher
'
import
{
CollectionNftsAndMenuLoading
}
from
'
./CollectionNfts
'
import
{
CollectionNftsAndMenuLoading
}
from
'
./CollectionNfts
'
import
{
CollectionStatsLoading
}
from
'
./CollectionStats
'
import
{
CollectionStatsLoading
}
from
'
./CollectionStats
'
const
CollectionDescriptionSection
=
styled
(
Column
)
`
${
ScreenBreakpointsPaddings
}
`
const
CollectionAssets
=
styled
(
Box
)
`
${
ScreenBreakpointsPaddings
}
`
const
StyledColumn
=
styled
(
Column
)
`
width: 100%;
`
const
StyledRow
=
styled
(
Row
)
`
gap: 24px;
margin-bottom: 28px;
`
export
const
CollectionPageSkeleton
=
()
=>
{
export
const
CollectionPageSkeleton
=
()
=>
{
const
isMobile
=
useIsMobile
()
const
isMobile
=
useIsMobile
()
return
(
return
(
<
Column
width=
"full"
>
<
StyledColumn
>
<
Box
width=
"full"
height=
{
`${COLLECTION_BANNER_HEIGHT}`
}
>
<
Box
width=
"full"
height=
{
`${COLLECTION_BANNER_HEIGHT}`
}
>
<
CollectionBannerLoading
/>
<
CollectionBannerLoading
/>
</
Box
>
</
Box
>
<
Col
umn
paddingX=
"32"
>
<
Col
lectionDescriptionSection
>
<
CollectionStatsLoading
isMobile=
{
isMobile
}
/>
<
CollectionStatsLoading
isMobile=
{
isMobile
}
/>
<
Row
gap=
"24"
marginBottom=
"28"
>
<
StyledRow
>
{
ActivitySwitcherLoading
}
</
StyledRow
>
{
ActivitySwitcherLoading
}
</
CollectionDescriptionSection
>
</
Row
>
<
CollectionAssets
>
</
Column
>
<
Box
paddingX=
"48"
>
<
CollectionNftsAndMenuLoading
/>
<
CollectionNftsAndMenuLoading
/>
</
Box
>
</
CollectionAssets
>
</
Column
>
</
Styled
Column
>
)
)
}
}
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