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
a88c0837
Unverified
Commit
a88c0837
authored
Dec 08, 2022
by
lynn
Committed by
GitHub
Dec 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: token details loading state fixes (#5567)
* init * no export * respond to jordan
parent
1a6cad4a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
17 deletions
+28
-17
PriceChart.tsx
src/components/Tokens/TokenDetails/PriceChart.tsx
+1
-1
Skeleton.tsx
src/components/Tokens/TokenDetails/Skeleton.tsx
+27
-16
No files found.
src/components/Tokens/TokenDetails/PriceChart.tsx
View file @
a88c0837
...
...
@@ -73,7 +73,7 @@ export const TokenPrice = styled.span`
font-size: 36px;
line-height: 44px;
`
export
const
DeltaContainer
=
styled
.
div
`
const
DeltaContainer
=
styled
.
div
`
height: 16px;
display: flex;
align-items: center;
...
...
src/components/Tokens/TokenDetails/Skeleton.tsx
View file @
a88c0837
...
...
@@ -9,7 +9,7 @@ import { LoadingBubble } from '../loading'
import
{
LogoContainer
}
from
'
../TokenTable/TokenRow
'
import
{
AboutContainer
,
AboutHeader
}
from
'
./About
'
import
{
BreadcrumbNavLink
}
from
'
./BreadcrumbNavLink
'
import
{
DeltaContainer
,
TokenPrice
}
from
'
./PriceChart
'
import
{
TokenPrice
}
from
'
./PriceChart
'
import
{
StatPair
,
StatsWrapper
,
StatWrapper
}
from
'
./StatsSection
'
export
const
Hr
=
styled
.
hr
`
...
...
@@ -97,31 +97,32 @@ const TokenLogoBubble = styled(DetailBubble)`
border-radius: 50%;
`
const
TitleBubble
=
styled
(
DetailBubble
)
`
width: 1
40
px;
width: 1
36
px;
`
const
PriceBubble
=
styled
(
SquaredBubble
)
`
margin-top: 2px;
height: 38px;
`
const
DeltaBubble
=
styled
(
DetailBubble
)
`
margin-top: 6px;
width: 96px;
height: 20px;
margin-top: 4px;
height: 40px;
`
const
SectionBubble
=
styled
(
SquaredBubble
)
`
width:
96
px;
width:
120
px;
`
const
StatTitleBubble
=
styled
(
DetailBubble
)
`
width:
25%
;
width:
80px
;
margin-bottom: 4px;
`
const
StatBubble
=
styled
(
SquaredBubble
)
`
width:
50%
;
width:
116px
;
`
const
WideBubble
=
styled
(
DetailBubble
)
`
margin-bottom: 6px;
width: 100%;
`
const
ThinTitleBubble
=
styled
(
WideBubble
)
`
width: 120px;
`
const
HalfWideBubble
=
styled
(
WideBubble
)
`
width: 50%;
`
...
...
@@ -131,6 +132,11 @@ const StatsLoadingContainer = styled.div`
display: flex;
flex-wrap: wrap;
`
const
ExtraDetailsContainer
=
styled
.
div
`
padding-top: 24px;
`
const
ChartAnimation
=
styled
.
div
`
animation: wave 8s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
display: flex;
...
...
@@ -165,9 +171,6 @@ export function LoadingChart() {
<
TokenPrice
>
<
PriceBubble
/>
</
TokenPrice
>
<
DeltaContainer
>
<
DeltaBubble
/>
</
DeltaContainer
>
<
Space
heightSize=
{
6
}
/>
<
LoadingChartContainer
>
<
div
>
...
...
@@ -242,7 +245,15 @@ export default function TokenDetailsSkeleton() {
</
AboutContainer
>
<
WideBubble
/>
<
WideBubble
/>
<
HalfWideBubble
style=
{
{
marginBottom
:
'
24px
'
}
}
/>
<
ExtraDetailsContainer
>
<
ThinTitleBubble
/>
<
HalfWideBubble
/>
</
ExtraDetailsContainer
>
<
ExtraDetailsContainer
>
<
ThinTitleBubble
/>
<
HalfWideBubble
/>
</
ExtraDetailsContainer
>
</
LeftPanel
>
)
}
...
...
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