@@ -62,7 +62,7 @@ const PoolListItem: React.FC<IProps> = ({
62
62
const { classes } = useStyles ( )
63
63
64
64
const navigate = useNavigate ( )
65
- const isXs = useMediaQuery ( theme . breakpoints . down ( 'xs ' ) )
65
+ const isSm = useMediaQuery ( theme . breakpoints . down ( 'sm ' ) )
66
66
67
67
const handleOpenPosition = ( ) => {
68
68
navigate (
@@ -82,9 +82,9 @@ const PoolListItem: React.FC<IProps> = ({
82
82
container
83
83
classes = { { container : classes . container } }
84
84
style = { hideBottomLine ? { border : 'none' } : undefined } >
85
- { ! isXs ? < Typography > { tokenIndex } </ Typography > : null }
85
+ { ! isSm ? < Typography > { tokenIndex } </ Typography > : null }
86
86
< Grid className = { classes . imageContainer } >
87
- { ! isXs && (
87
+ { ! isSm && (
88
88
< Box className = { classes . iconsWrapper } >
89
89
< img src = { iconFrom } alt = 'Token from' />
90
90
< img src = { iconTo } alt = 'Token to' />
@@ -96,7 +96,7 @@ const PoolListItem: React.FC<IProps> = ({
96
96
</ Typography >
97
97
</ Grid >
98
98
</ Grid >
99
- { /* {!isXs ? (
99
+ { /* {!isSm ? (
100
100
<Typography>
101
101
{`${apy > 1000 ? '>1000' : apy.toFixed(2)}%` }
102
102
<Tooltip
@@ -139,22 +139,24 @@ const PoolListItem: React.FC<IProps> = ({
139
139
< Typography > { fee } %</ Typography >
140
140
< Typography > { `$${ formatNumbers ( ) ( volume . toString ( ) ) } ${ showPrefix ( volume ) } ` } </ Typography >
141
141
< Typography > { `$${ formatNumbers ( ) ( TVL . toString ( ) ) } ${ showPrefix ( TVL ) } ` } </ Typography >
142
- < Box className = { classes . action } >
143
- < TooltipHover text = 'Exchange' >
144
- < button className = { classes . actionButton } onClick = { handleOpenSwap } >
145
- < img width = { 32 } height = { 32 } src = { icons . horizontalSwapIcon } alt = { 'Exchange' } />
146
- </ button >
147
- </ TooltipHover >
148
- < TooltipHover text = 'Add position' >
149
- < button className = { classes . actionButton } onClick = { handleOpenPosition } >
150
- < img width = { 32 } height = { 32 } src = { icons . plusIcon } alt = { 'Open' } />
151
- </ button >
152
- </ TooltipHover >
153
- </ Box >
142
+ { ! isSm && (
143
+ < Box className = { classes . action } >
144
+ < TooltipHover text = 'Exchange' >
145
+ < button className = { classes . actionButton } onClick = { handleOpenSwap } >
146
+ < img width = { 32 } height = { 32 } src = { icons . horizontalSwapIcon } alt = { 'Exchange' } />
147
+ </ button >
148
+ </ TooltipHover >
149
+ < TooltipHover text = 'Add position' >
150
+ < button className = { classes . actionButton } onClick = { handleOpenPosition } >
151
+ < img width = { 32 } height = { 32 } src = { icons . plusIcon } alt = { 'Open' } />
152
+ </ button >
153
+ </ TooltipHover >
154
+ </ Box >
155
+ ) }
154
156
</ Grid >
155
157
) : (
156
158
< Grid container classes = { { container : classes . container , root : classes . header } } >
157
- { ! isXs && (
159
+ { ! isSm && (
158
160
< Typography style = { { lineHeight : '11px' } } >
159
161
N< sup > o</ sup >
160
162
</ Typography >
@@ -241,7 +243,7 @@ const PoolListItem: React.FC<IProps> = ({
241
243
< ArrowDropDownIcon className = { classes . icon } />
242
244
) : null }
243
245
</ Typography >
244
- < Typography align = 'right' > Action</ Typography >
246
+ { ! isSm && < Typography align = 'right' > Action</ Typography > }
245
247
</ Grid >
246
248
) }
247
249
</ Grid >
0 commit comments