File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
swap/components/transaction-review/components Expand file tree Collapse file tree 3 files changed +4
-8
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
- import { Spinner } from '@chakra-ui/react'
2
1
import {
3
2
CheckCircleIcon ,
4
3
ExclamationCircleIcon ,
5
4
} from '@heroicons/react/20/solid'
6
5
import clsx from 'clsx'
7
6
7
+ import { Spinner } from '@/components/spinner'
8
+
8
9
export enum TransactionReviewSimulationState {
9
10
default ,
10
11
loading ,
@@ -35,11 +36,7 @@ const SimulationDefaultView = ({ isLoading }: { isLoading: boolean }) => {
35
36
return (
36
37
< div className = 'border-ic-gray-100 text-ic-black dark:text-ic-gray-300 flex w-full flex-row justify-between rounded-2xl border p-4 dark:border-[#3A6060]' >
37
38
< span className = 'text-lg font-medium' > Transaction simulation</ span >
38
- { isLoading ? (
39
- < Spinner className = 'text-ic-black dark:text-ic-white' />
40
- ) : (
41
- < span > Auto</ span >
42
- ) }
39
+ { isLoading ? < Spinner /> : < span > Auto</ span > }
43
40
</ div >
44
41
)
45
42
}
Original file line number Diff line number Diff line change 1
1
import clsx from 'clsx'
2
2
3
+ import { Spinner } from '@/components/spinner'
3
4
import { Tooltip , TooltipContent , TooltipTrigger } from '@/components/tooltip'
4
5
5
- import { Spinner } from './spinner'
6
-
7
6
interface TradeButtonProps {
8
7
label : string
9
8
isDisabled : boolean
You can’t perform that action at this time.
0 commit comments