File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/src/components/loop/processing Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,19 @@ const Styled = {
25
25
height: 100%;
26
26
display: flex;
27
27
flex-direction: column;
28
- justify-content: center;
29
28
` ,
30
29
Track : styled . div `
31
30
height: 3px;
32
31
background-color: #464d62;
33
32
border: 1px solid #5a6276;
34
33
border-radius: 2px;
35
34
` ,
35
+ Status : styled . div < { pct : number } > `
36
+ width: ${ props => props . pct } %;
37
+ text-align: right;
38
+ font-size: ${ props => props . theme . sizes . xs } ;
39
+ transition: all 1s;
40
+ ` ,
36
41
Fill : styled . div < { state : number ; pct : number } > `
37
42
height: 1px;
38
43
width: ${ props => props . pct } %;
@@ -50,9 +55,10 @@ const SwapProgress: React.FC<Props> = ({ swap }) => {
50
55
const steps = progressSteps [ swap . type ] ;
51
56
const pct = Math . floor ( ( ( steps . indexOf ( swap . state ) + 1 ) / steps . length ) * 100 ) ;
52
57
53
- const { Wrapper, Track, Fill } = Styled ;
58
+ const { Wrapper, Status , Track, Fill } = Styled ;
54
59
return (
55
60
< Wrapper >
61
+ < Status pct = { pct } > { swap . stateLabel } </ Status >
56
62
< Track >
57
63
< Fill state = { swap . state } pct = { pct } title = { swap . stateLabel } />
58
64
</ Track >
You can’t perform that action at this time.
0 commit comments