Skip to content

Commit 82859bc

Browse files
authored
Merge pull request #1879 from IndexCoop/chore/refactor-chakra-spinner
chore: refactor chakra spinner
2 parents b64965e + e7642a0 commit 82859bc

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
File renamed without changes.

src/components/swap/components/transaction-review/components/simulation.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { Spinner } from '@chakra-ui/react'
21
import {
32
CheckCircleIcon,
43
ExclamationCircleIcon,
54
} from '@heroicons/react/20/solid'
65
import clsx from 'clsx'
76

7+
import { Spinner } from '@/components/spinner'
8+
89
export enum TransactionReviewSimulationState {
910
default,
1011
loading,
@@ -35,11 +36,7 @@ const SimulationDefaultView = ({ isLoading }: { isLoading: boolean }) => {
3536
return (
3637
<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]'>
3738
<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>}
4340
</div>
4441
)
4542
}

src/components/trade-button/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import clsx from 'clsx'
22

3+
import { Spinner } from '@/components/spinner'
34
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/tooltip'
45

5-
import { Spinner } from './spinner'
6-
76
interface TradeButtonProps {
87
label: string
98
isDisabled: boolean

0 commit comments

Comments
 (0)