chore: Code refactoring #13
Annotations
10 errors and 11 warnings
Run ESLint:
src/components/GuardianSetup.tsx#L75
'setRecoveryExpiry' is assigned a value but never used
|
Run ESLint:
src/components/GuardianSetup.tsx#L80
'setRecoveryExpiryUnit' is assigned a value but never used
|
Run ESLint:
src/components/RequestedRecoveries.tsx#L39
'stepsContext' is assigned a value but never used
|
Run ESLint:
src/components/RequestedRecoveries.tsx#L43
'setSafeWalletAddress' is assigned a value but never used
|
Run ESLint:
src/components/RequestedRecoveries.tsx#L51
'gurdianRequestId' is assigned a value but never used
|
Run ESLint:
src/components/RequestedRecoveries.tsx#L52
'isButtonStateLoading' is assigned a value but never used
|
Run ESLint:
src/components/Toggle.tsx#L6
'theme' is defined but never used
|
Run ESLint:
src/components/TriggerAccountRecovery.tsx#L2
'Web3Provider' is defined but never used
|
Run ESLint:
src/components/TriggerAccountRecovery.tsx#L20
'setButtonState' is assigned a value but never used
|
Run ESLint:
src/components/burnerWallet/GuardianSetup.tsx#L78
'isAccountInitializedLoading' is assigned a value but never used
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run ESLint:
src/components/GuardianSetup.tsx#L125
React Hook useEffect has missing dependencies: 'checkIfRecoveryIsConfigured' and 'interval'. Either include them or remove the dependency array
|
Run ESLint:
src/components/GuardianSetup.tsx#L212
Assignments to the 'interval' variable from inside React Hook useCallback will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useCallback
|
Run ESLint:
src/components/RequestedRecoveries.tsx#L86
React Hook useEffect has a missing dependency: 'checkIfRecoveryCanBeCompleted'. Either include it or remove the dependency array
|
Run ESLint:
src/components/RequestedRecoveries.tsx#L138
Assignments to the 'interval' variable from inside React Hook useCallback will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useCallback
|
Run ESLint:
src/components/RequestedRecoveries.tsx#L192
React Hook useCallback has missing dependencies: 'safeOwnersData' and 'safeWalletAddress'. Either include them or remove the dependency array
|
Run ESLint:
src/components/burnerWallet/GuardianSetup.tsx#L26
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
Run ESLint:
src/components/burnerWallet/GuardianSetup.tsx#L201
React Hook useEffect has missing dependencies: 'checkIfRecoveryIsConfigured' and 'interval'. Either include them or remove the dependency array
|
Run ESLint:
src/components/burnerWallet/GuardianSetup.tsx#L254
Assignments to the 'interval' variable from inside React Hook useCallback will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useCallback
|
Run ESLint:
src/components/burnerWallet/RequestedRecoveries.tsx#L78
React Hook useEffect has a missing dependency: 'checkIfRecoveryCanBeCompleted'. Either include it or remove the dependency array
|
Loading