From 08c09781c77f1a8cb92fa9140d667c407da0d660 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Tue, 8 Apr 2025 14:36:42 +0200 Subject: [PATCH] Fixing all yarn lint errors --- .../src/components/Accounts/AccountItem.tsx | 70 +- .../Accounts/modals/AccountsModal.tsx | 66 +- .../Bonding/forms/nym-node/NymNodeData.tsx | 1 + .../forms/nym-node/NymNodeSignature.tsx | 1 - .../components/Clipboard/ClipboardActions.tsx | 1 + .../Clipboard/ClipboardFormFields.tsx | 27 +- .../components/Delegation/DelegationList.tsx | 5 +- .../src/components/Send/SendInputModal.tsx | 110 ++- nym-wallet/src/requests/gatewayDetails.ts | 1 - nym-wallet/src/theme/NymWalletTheme.tsx | 2 +- nym-wallet/src/theme/index.tsx | 2 +- nym-wallet/src/theme/mui-theme.d.ts | 4 +- nym-wallet/src/theme/theme.tsx | 876 +++++++++--------- nym-wallet/src/utils/common.ts | 3 +- nym-wallet/src/utils/shellHelper.ts | 8 +- 15 files changed, 617 insertions(+), 560 deletions(-) diff --git a/nym-wallet/src/components/Accounts/AccountItem.tsx b/nym-wallet/src/components/Accounts/AccountItem.tsx index 92271a6a4b..e19cf7efd5 100644 --- a/nym-wallet/src/components/Accounts/AccountItem.tsx +++ b/nym-wallet/src/components/Accounts/AccountItem.tsx @@ -29,9 +29,9 @@ export const AccountItem = ({ const { selectedAccount, setDialogToDisplay, setAccountMnemonic, handleAccountToEdit } = useContext(AccountsContext); const { copy, copied } = useClipboard({ copiedTimeout: 1000 }); const theme = useTheme(); - + const isSelected = selectedAccount?.id === name; - + return ( {isSelected && ( - )} } > - {/* Account avatar with box wrapper to apply styling */} - ) => { e.stopPropagation(); @@ -176,4 +174,4 @@ export const AccountItem = ({ ); -}; \ No newline at end of file +}; diff --git a/nym-wallet/src/components/Accounts/modals/AccountsModal.tsx b/nym-wallet/src/components/Accounts/modals/AccountsModal.tsx index 964700e410..479335021e 100644 --- a/nym-wallet/src/components/Accounts/modals/AccountsModal.tsx +++ b/nym-wallet/src/components/Accounts/modals/AccountsModal.tsx @@ -2,7 +2,6 @@ import React, { useContext, useState } from 'react'; import { Box, Button, - Paper, Dialog, DialogActions, DialogContent, @@ -74,8 +73,8 @@ export const AccountsModal = () => { { - Switch between accounts - - { ))} - + - - - -