File tree Expand file tree Collapse file tree 7 files changed +20
-15
lines changed Expand file tree Collapse file tree 7 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import Tokens from "./Tokens/Tokens";
55
66const ChainAndToken = ( ) => {
77 return (
8- < div className = { `col-12 d-flex flex-row` } >
9- < div className = { `col-6 ` } >
8+ < div className = { `d-flex flex-row` } style = { { width : "100%" } } >
9+ < div className = { `` } style = { { width : "48%" } } >
1010 < Chains />
1111 </ div >
12- < div className = { `col-6` } >
12+ < div className = { `` } style = { { width : "48%" } } >
1313 < Tokens />
1414 </ div >
1515
Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ const ChainBalance = ({chainId}) => {
3737 No Data!
3838 </ div >
3939 else return < div className = { `d-flex flex-column justify-content-center align-items-center col-12 mt-4 py-3 ${ classes . box } ${ classes . striped } ` } >
40- { data ?. map ( ( balance , index ) => < div className = { `d-flex flex-row col-12 py-4 px-4 font-size-sm-plus ` } key = { index } >
40+ { data ?. map ( ( balance , index ) => < div className = { `d-flex flex-row col-12 py-4 px-2 font-size-sm` } key = { index } >
4141 < span className = { `col-8` } > { index + 1 } < span className = { `mx-3` } > </ span > { balance ?. address } </ span >
42- < span className = { `col-4 text-center` } style = { { color : '#fff' } } > Balance: < span className = { `font-size-md` } > { new BN ( balance ?. balance ) . toFormat ( ) } </ span > </ span >
42+ < span className = { `col-2 text-center` } style = { { color : '#fff' } } > Balance: < span className = { `` } > { new BN ( balance ?. balance ) . toFormat ( ) } </ span > </ span >
43+ < span className = { `col-2 text-center` } style = { { color : '#fff' } } > $ { new BN ( balance ?. balanceUsd ) . isZero ( ) ? "---" : new BN ( balance ?. balanceUsd ) . toFormat ( ) } </ span >
4344 </ div > ) }
4445 </ div >
4546 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const Chains = () => {
4242
4343 return (
4444 < ScrollBar >
45- < div className = { `flex-column col-12 justify-content-start px-5 py-5 ` } >
45+ < div className = { `flex-column col-12 justify-content-start px-3 py-4 ` } >
4646 < p className = { `font-size-md-plus mb-4` } > Chain List</ p >
4747
4848 {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const Tokens = () => {
3535
3636 return (
3737 < ScrollBar >
38- < div className = { `flex-column col-12 justify-content-start px-5 py-5 ` } >
38+ < div className = { `flex-column col-12 justify-content-start px-3 py-4 ` } >
3939 < p className = { `font-size-md-plus mb-4` } > Token List</ p >
4040
4141 {
Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ const TokensBalance = ({chainId}) => {
3030 No Data!
3131 </ div >
3232 else return < div className = { `d-flex flex-column justify-content-center align-items-center col-12 mt-4 py-3 ${ classes . box } ${ classes . striped } ` } >
33- { data ?. map ( ( balance , index ) => < div className = { `d-flex flex-row col-12 py-4 px-4 font-size-sm-plus ` } key = { index } >
33+ { data ?. map ( ( balance , index ) => < div className = { `d-flex flex-row col-12 py-4 px-2 font-size-sm` } key = { index } >
3434 < span className = { `col-8` } > { index + 1 } < span className = { `mx-3` } > </ span > { balance ?. address } </ span >
35- < span className = { `col-4 text-center` } style = { { color : '#fff' } } > Balance: < span className = { `font-size-md` } > { new BN ( balance ?. balance ) . toFormat ( ) } </ span > </ span >
35+ < span className = { `col-2 text-center` } style = { { color : '#fff' } } > Balance: < span className = { `` } > { new BN ( balance ?. balance ) . toFormat ( ) } </ span > </ span >
36+ < span className = { `col-2 text-center` } style = { { color : '#fff' } } > $ { new BN ( balance ?. balanceUsd ) . isZero ( ) ? "---" : new BN ( balance ?. balanceUsd ) . toFormat ( ) } </ span >
37+
3638 </ div > ) }
3739 </ div >
3840
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ const ChainCard = ({data, index}) => {
77 console . log ( "data in" , data )
88
99 return (
10- < div key = { index } className = { `d-flex flex-row justify-content-between align-items-center py-3 px-4` } >
11- < span className = { `col-6` } > { data ?. chain } </ span >
12- < span className = { `col-6` } > { new BN ( data ?. balance ) . toFormat ( ) } </ span >
10+ < div key = { index } className = { `d-flex flex-row justify-content-between align-items-center py-3 px-4 font-size-sm` } >
11+ < span className = { `col-4` } > { data ?. chain } </ span >
12+ < span className = { `col-4` } > { new BN ( data ?. balance ) . toFormat ( ) } </ span >
13+ < span className = { `col-4` } > $ { new BN ( data ?. balanceUsd ) . isZero ( ) ? "---" : new BN ( data ?. balanceUsd ) . toFormat ( ) } </ span >
1314 </ div >
1415 ) ;
1516} ;
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ import {BN} from "../../../utils/utils";
44
55const TokenCard = ( { data, index} ) => {
66 return (
7- < div key = { index } className = { `d-flex flex-row justify-content-between align-items-center py-3 px-4` } >
8- < span className = { `col-8` } > { data ?. name } - { data ?. symbol } </ span >
9- < span className = { `col-4` } > { new BN ( data ?. balance ) . toFormat ( ) } </ span >
7+ < div key = { index } className = { `d-flex flex-row justify-content-between align-items-center py-3 px-4 font-size-sm` } >
8+ < span className = { `col-6` } > { data ?. name } - { data ?. symbol } </ span >
9+ < span className = { `col-3` } > { new BN ( data ?. balance ) . toFormat ( ) } </ span >
10+ < span className = { `col-3` } > $ { new BN ( data ?. balanceUsd ) . isZero ( ) ? "---" : new BN ( data ?. balanceUsd ) . toFormat ( ) } </ span >
1011 </ div >
1112 ) ;
1213} ;
You can’t perform that action at this time.
0 commit comments