Skip to content

Commit 60b0247

Browse files
authored
fix da spinna (#3324)
1 parent 46fd6ce commit 60b0247

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

wormhole-connect/src/views/TxSearch.tsx

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useCallback, useContext, useEffect, useState } from 'react';
22
import { makeStyles } from 'tss-react/mui';
33
import { useDispatch } from 'react-redux';
4-
import { Select, MenuItem, CircularProgress } from '@mui/material';
4+
import { Select, MenuItem, CircularProgress, useTheme } from '@mui/material';
55

66
import config, { getWormholeContextV2 } from 'config';
77
import { isValidTxId } from 'utils';
@@ -72,6 +72,8 @@ function TxSearch() {
7272
const [error, setError] = useState('');
7373
const [loading, setLoading] = useState(false);
7474

75+
const theme = useTheme();
76+
7577
const routeContext = useContext(RouteContext);
7678

7779
function setChain(e: any) {
@@ -210,7 +212,16 @@ function TxSearch() {
210212
<AlertBanner show={!!error} content={error} error margin="0 0 16px 0" />
211213

212214
<Button disabled={!state.chain || !state.tx} elevated onClick={search}>
213-
{loading ? <CircularProgress size={24} /> : 'Search'}
215+
{loading ? (
216+
<CircularProgress
217+
size={24}
218+
sx={{
219+
color: theme.palette.primary.contrastText,
220+
}}
221+
/>
222+
) : (
223+
'Search'
224+
)}
214225
</Button>
215226
<div className={classes.footerNavBar}>
216227
<FooterNavBar />

0 commit comments

Comments
 (0)