File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
Flex ,
3
- IconButton ,
4
3
Input ,
5
4
Popover ,
6
5
PopoverBody ,
@@ -72,15 +71,9 @@ export const Settings = (props: SettingsProps) => {
72
71
return (
73
72
< Popover placement = 'bottom-end' >
74
73
< PopoverTrigger >
75
- < IconButton
76
- aria-label = 'Trade Settings'
77
- icon = {
78
- < Cog8ToothIcon className = 'dark:text-ic-gray-400 text-ic-black m-1.5 size-4' />
79
- }
80
- size = 'sm'
81
- style = { { border : 0 } }
82
- variant = 'unstyled'
83
- />
74
+ < button aria-label = 'Trade Settings' className = 'my-0.5 mr-1' >
75
+ < Cog8ToothIcon className = 'dark:text-ic-gray-400 text-ic-black m-1.5 size-4' />
76
+ </ button >
84
77
</ PopoverTrigger >
85
78
< PopoverContent
86
79
bg = { 'linear-gradient(187deg, #FCFFFF -184.07%, #F7F8F8 171.05%)' }
Original file line number Diff line number Diff line change 1
- import { Flex , IconButton , Text } from '@chakra-ui/react'
1
+ import { Flex , Text } from '@chakra-ui/react'
2
2
import { ChevronUpDownIcon } from '@heroicons/react/20/solid'
3
3
import { useAtom } from 'jotai'
4
4
import { useCallback , useEffect , useState } from 'react'
@@ -225,13 +225,13 @@ export const Swap = (props: SwapProps) => {
225
225
} }
226
226
/>
227
227
< div className = 'flex h-1.5 self-center' >
228
- < IconButton
229
- className = 'bg-ic-white text-ic-gray-400'
230
- margin = { '-16px 0 0 0' }
228
+ < button
229
+ className = 'text-ic-gray-400 border-ic-gray-400 bg-ic-white hover:bg-ic-gray-100 relative z-50 flex self-center rounded-lg border px-2 py-1'
231
230
aria-label = 'switch input/output tokens'
232
- icon = { < ChevronUpDownIcon className = 'h-7 w-5 text-gray-500' /> }
233
231
onClick = { onSwitchTokens }
234
- />
232
+ >
233
+ < ChevronUpDownIcon className = 'h-7 w-5 text-gray-500' />
234
+ </ button >
235
235
</ div >
236
236
< TradeOutput
237
237
caption = { 'You receive' }
You can’t perform that action at this time.
0 commit comments