File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
PopoverContent ,
7
7
PopoverTrigger ,
8
8
} from '@chakra-ui/react'
9
+ import { Button } from '@headlessui/react'
9
10
import { Cog8ToothIcon } from '@heroicons/react/20/solid'
10
11
import { useMemo , useRef , useState } from 'react'
11
12
@@ -70,9 +71,9 @@ export const Settings = (props: SettingsProps) => {
70
71
return (
71
72
< Popover placement = 'bottom-end' >
72
73
< PopoverTrigger >
73
- < button aria-label = 'Trade Settings' className = 'my-0.5 mr-1' >
74
+ < Button aria-label = 'Trade Settings' className = 'my-0.5 mr-1' >
74
75
< Cog8ToothIcon className = 'dark:text-ic-gray-400 text-ic-black m-1.5 size-4' />
75
- </ button >
76
+ </ Button >
76
77
</ PopoverTrigger >
77
78
< PopoverContent
78
79
bg = { 'linear-gradient(187deg, #FCFFFF -184.07%, #F7F8F8 171.05%)' }
Original file line number Diff line number Diff line change 1
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
- < button
229
+ < Button
229
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'
230
231
aria-label = 'switch input/output tokens'
231
232
onClick = { onSwitchTokens }
232
233
>
233
234
< ChevronUpDownIcon className = 'h-7 w-5 text-gray-500' />
234
- </ button >
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