File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 4
4
AccordionIcon ,
5
5
AccordionItem ,
6
6
AccordionPanel ,
7
- Box ,
8
7
Flex ,
9
8
} from '@chakra-ui/react'
10
9
import { ExclamationTriangleIcon } from '@heroicons/react/20/solid'
@@ -95,7 +94,7 @@ export const TradeDetails = (props: TradeDetailsProps) => {
95
94
height = { 16 }
96
95
/>
97
96
) }
98
- < Box onClick = { onToggleTokenPrice } >
97
+ < div onClick = { onToggleTokenPrice } >
99
98
{ isLoading ? (
100
99
< StyledSkeleton width = { 200 } />
101
100
) : (
@@ -104,7 +103,7 @@ export const TradeDetails = (props: TradeDetailsProps) => {
104
103
usdLabel = { usdLabel }
105
104
/>
106
105
) }
107
- </ Box >
106
+ </ div >
108
107
</ Flex >
109
108
< div className = { cn ( 'flex gap-4' , isExpanded && 'hidden' ) } >
110
109
{ ! isLoading &&
Original file line number Diff line number Diff line change 1
- import { Box , Flex , IconButton , Text } from '@chakra-ui/react'
1
+ import { Flex , IconButton , Text } from '@chakra-ui/react'
2
2
import { ChevronUpDownIcon } from '@heroicons/react/20/solid'
3
3
import { useCallback , useEffect , useState } from 'react'
4
4
import { useDebounce } from 'use-debounce'
@@ -215,15 +215,15 @@ export const Swap = (props: SwapProps) => {
215
215
if ( inputTokenslist . length > 1 ) onOpenSelectInputToken ( )
216
216
} }
217
217
/>
218
- < Box h = '6px' alignSelf = { ' center'} >
218
+ < div className = 'flex h-1.5 self- center'>
219
219
< IconButton
220
220
className = 'bg-ic-white text-ic-gray-400'
221
221
margin = { '-16px 0 0 0' }
222
222
aria-label = 'switch input/output tokens'
223
223
icon = { < ChevronUpDownIcon className = 'h-7 w-5 text-gray-500' /> }
224
224
onClick = { onSwitchTokens }
225
225
/>
226
- </ Box >
226
+ </ div >
227
227
< TradeOutput
228
228
caption = { 'You receive' }
229
229
selectedToken = { outputToken }
You can’t perform that action at this time.
0 commit comments