@@ -3,7 +3,7 @@ import classNames from 'classnames'
3
3
import { theme } from '@static/theme'
4
4
import { useStyles } from './style'
5
5
import { Box , Grid , Typography , useMediaQuery } from '@mui/material'
6
- import { formatNumbers , showPrefix } from '@utils/utils'
6
+ import { formatNumber } from '@utils/utils'
7
7
8
8
interface Iprops {
9
9
percentVolume : number
@@ -30,10 +30,7 @@ const VolumeBar: React.FC<Iprops> = ({
30
30
< Grid container classes = { { container : classes . container } } >
31
31
< Box className = { classes . tokenName } >
32
32
< Typography className = { classes . tokenHeader } > Volume 24H:</ Typography >
33
- < Typography className = { classes . tokenContent } >
34
- ${ formatNumbers ( ) ( volume . toString ( ) ) }
35
- { showPrefix ( volume ) }
36
- </ Typography >
33
+ < Typography className = { classes . tokenContent } > ${ formatNumber ( volume ) } </ Typography >
37
34
{ ! isXDown && (
38
35
< Typography
39
36
className = { classNames (
@@ -48,10 +45,7 @@ const VolumeBar: React.FC<Iprops> = ({
48
45
</ Box >
49
46
< Box className = { classes . tokenName } >
50
47
< Typography className = { classes . tokenHeader } > TVL 24H:</ Typography >
51
- < Typography className = { classes . tokenContent } >
52
- ${ formatNumbers ( ) ( tvlVolume . toString ( ) ) }
53
- { showPrefix ( tvlVolume ) }
54
- </ Typography >
48
+ < Typography className = { classes . tokenContent } > ${ formatNumber ( tvlVolume ) } </ Typography >
55
49
{ ! isXDown && (
56
50
< Typography
57
51
className = { classNames (
@@ -64,10 +58,7 @@ const VolumeBar: React.FC<Iprops> = ({
64
58
</ Box >
65
59
< Box className = { classes . tokenName } >
66
60
< Typography className = { classes . tokenHeader } > Fees 24H:</ Typography >
67
- < Typography className = { classes . tokenContent } >
68
- ${ formatNumbers ( ) ( feesVolume . toString ( ) ) }
69
- { showPrefix ( feesVolume ) }
70
- </ Typography >
61
+ < Typography className = { classes . tokenContent } > ${ formatNumber ( feesVolume ) } </ Typography >
71
62
{ ! isXDown && (
72
63
< Typography
73
64
className = { classNames (
0 commit comments