File tree Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Expand file tree Collapse file tree 2 files changed +11
-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 ,
7
6
PopoverContent ,
8
7
PopoverTrigger ,
9
8
} from '@chakra-ui/react'
9
+ import { Button } from '@headlessui/react'
10
10
import { Cog8ToothIcon } from '@heroicons/react/20/solid'
11
11
import { useMemo , useRef , useState } from 'react'
12
12
@@ -71,15 +71,9 @@ export const Settings = (props: SettingsProps) => {
71
71
return (
72
72
< Popover placement = 'bottom-end' >
73
73
< PopoverTrigger >
74
- < IconButton
75
- aria-label = 'Trade Settings'
76
- icon = {
77
- < Cog8ToothIcon className = 'dark:text-ic-gray-400 text-ic-black m-1.5 size-4' />
78
- }
79
- size = 'sm'
80
- style = { { border : 0 } }
81
- variant = 'unstyled'
82
- />
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 >
83
77
</ PopoverTrigger >
84
78
< PopoverContent
85
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 } from '@chakra-ui/react'
1
+ import { Flex } from '@chakra-ui/react'
2
+ import { Button } from '@headlessui/react'
2
3
import { ChevronUpDownIcon } from '@heroicons/react/20/solid'
3
4
import { useAtom } from 'jotai'
4
5
import { useCallback , useEffect , useState } from 'react'
@@ -225,13 +226,13 @@ export const Swap = (props: SwapProps) => {
225
226
} }
226
227
/>
227
228
< 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' }
229
+ < Button
230
+ 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
231
aria-label = 'switch input/output tokens'
232
- icon = { < ChevronUpDownIcon className = 'h-7 w-5 text-gray-500' /> }
233
232
onClick = { onSwitchTokens }
234
- />
233
+ >
234
+ < ChevronUpDownIcon className = 'h-7 w-5 text-gray-500' />
235
+ </ Button >
235
236
</ div >
236
237
< TradeOutput
237
238
caption = { 'You receive' }
You can’t perform that action at this time.
0 commit comments