@@ -2,6 +2,7 @@ import React, {useEffect, useState} from 'react';
22import { useGetTokenAllBalanceById , useGetTokenTotalBalanceById } from "../../../query" ;
33import classes from "../Chains/Chains.module.css" ;
44import ToggleSwitch from "../../../components/ToggleSwitch/ToggleSwitch" ;
5+ import { BN } from "../../../utils/utils" ;
56
67const TokensBalance = ( { chainId} ) => {
78
@@ -29,9 +30,9 @@ const TokensBalance = ({chainId}) => {
2930 No Data!
3031 </ div >
3132 else return < div className = { `d-flex flex-column justify-content-center align-items-center col-12 mt-4 py-3 ${ classes . box } ${ classes . striped } ` } >
32- { data ?. map ( ( balance , index ) => < div className = { `d-flex flex-row col-12 py-4 px-4` } key = { index } >
33+ { data ?. map ( ( balance , index ) => < div className = { `d-flex flex-row col-12 py-4 px-4 font-size-sm-plus ` } key = { index } >
3334 < span className = { `col-8` } > { index + 1 } < span className = { `mx-3` } > </ span > { balance ?. address } </ span >
34- < span className = { `col-4 text-center` } style = { { color : '#fff' } } > Balance: < span className = { `font-size-md` } > { balance ?. balance } </ span > </ span >
35+ < span className = { `col-4 text-center` } style = { { color : '#fff' } } > Balance: < span className = { `font-size-md` } > { new BN ( balance ?. balance ) . toFormat ( ) } </ span > </ span >
3536 </ div > ) }
3637 </ div >
3738
@@ -69,7 +70,7 @@ const TokensBalance = ({chainId}) => {
6970 < span className = { `mx-1` } > </ span >
7071 < span className = { `` } > Total Balance: </ span >
7172 < span className = { `mx-2` } > </ span >
72- < span className = { `font-size-md` } style = { { color : 'white' } } > { totalIsLoading ? "Loading..." : total ?. balance } </ span >
73+ < span className = { `font-size-md` } style = { { color : 'white' } } > { totalIsLoading ? "Loading..." : new BN ( total ?. balance ) . toFormat ( ) } </ span >
7374 </ div >
7475 </ div >
7576
0 commit comments