Skip to content

Commit 80a196f

Browse files
committed
Fix WalletSyncCircle warnings
1 parent 84fb58c commit 80a196f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ export default [
217217
'src/components/progress-indicators/LoadingSplashScreen.tsx',
218218
'src/components/progress-indicators/Shimmer.tsx',
219219
'src/components/progress-indicators/StepProgressBar.tsx',
220-
'src/components/progress-indicators/WalletSyncCircle.tsx',
221220
'src/components/rows/CoinRankRow.tsx',
222221
'src/components/rows/CryptoFiatAmountRow.tsx',
223222
'src/components/rows/CurrencyRow.tsx',

src/components/progress-indicators/WalletSyncCircle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface Props {
2727
/**
2828
* Renders the sync progress ratio as part of the `CryptoIcon` component.
2929
*/
30-
export const WalletSyncCircle = (props: Props) => {
30+
export const WalletSyncCircle: React.FC<Props> = props => {
3131
const theme = useTheme()
3232
const { size = theme.rem(2), wallet } = props
3333
// Animation shared state
@@ -37,7 +37,7 @@ export const WalletSyncCircle = (props: Props) => {
3737

3838
// Subscribe to the sync ratio:
3939
React.useEffect(() => {
40-
const handler = (ratio: number) => {
40+
const handler = (ratio: number): void => {
4141
if (ratio < RESYNC_THRESHOLD) {
4242
// Do not animate backwards if a resync happens after the sync is done:
4343
if (syncRatio.value > DONE_THRESHOLD) {

0 commit comments

Comments
 (0)