From 3d2ad21d9336c8a45978a1fbec6fcfe06ba063d3 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 21 Nov 2023 15:29:32 +0300 Subject: [PATCH] refactor: remove `true` from boolean attribute (#54) When using a boolean attribute in JSX, you can set the attribute value to true or omit the value. This helps to keep consistency in code. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- app/components/NetworkState.client.tsx | 2 +- app/components/block/Object.client.tsx | 2 +- app/components/common/AmountInput.tsx | 8 ++++---- app/components/dialogs/DialogAddMiner.tsx | 4 ++-- app/components/dialogs/DialogClosePool.tsx | 2 +- .../dialogs/DialogCreateAddress.tsx | 6 +++--- app/components/dialogs/DialogIdentity.tsx | 20 +++++++++---------- .../dialogs/DialogImportAddress.tsx | 4 ++-- app/components/dialogs/DialogJoinPool.tsx | 6 +++--- app/components/dialogs/DialogLeavePool.tsx | 6 +++--- app/components/dialogs/DialogLockFunds.tsx | 10 +++++----- app/components/dialogs/DialogRemoveMiner.tsx | 6 +++--- app/components/dialogs/DialogSendFunds.tsx | 4 ++-- .../dialogs/DialogSetPoolDifficulty.tsx | 6 +++--- .../dialogs/DialogSetPoolInterest.tsx | 2 +- app/components/dialogs/DialogSettings.tsx | 6 +++--- app/components/dialogs/DialogSignVerify.tsx | 2 +- .../dialogs/DialogUnlockAccount.tsx | 2 +- app/components/wallet/Account.client.tsx | 16 +++++++-------- app/components/wallet/Wallet.client.tsx | 2 +- app/root.tsx | 2 +- app/routes/address.$address.tsx | 4 ++-- app/routes/block.$block.tsx | 20 +++++++++---------- 23 files changed, 71 insertions(+), 71 deletions(-) diff --git a/app/components/NetworkState.client.tsx b/app/components/NetworkState.client.tsx index 0c57f2f..52c0e20 100644 --- a/app/components/NetworkState.client.tsx +++ b/app/components/NetworkState.client.tsx @@ -101,7 +101,7 @@ export default function NetworkState() {
- } /> + } /> } />
diff --git a/app/components/block/Object.client.tsx b/app/components/block/Object.client.tsx index 540ce3e..db4efab 100644 --- a/app/components/block/Object.client.tsx +++ b/app/components/block/Object.client.tsx @@ -44,7 +44,7 @@ export default function Object({ geometry }: IProps) { - + ); diff --git a/app/components/common/AmountInput.tsx b/app/components/common/AmountInput.tsx index dadfdea..975272e 100644 --- a/app/components/common/AmountInput.tsx +++ b/app/components/common/AmountInput.tsx @@ -22,17 +22,17 @@ export default function AmountInput({ disabled, onValueChange, placeholder, form return ( {formatOptionsUnit || (formatOptions?.unit)}} + rightElement={{formatOptionsUnit || (formatOptions?.unit)}} /> ); } diff --git a/app/components/dialogs/DialogAddMiner.tsx b/app/components/dialogs/DialogAddMiner.tsx index 86a3437..709e614 100644 --- a/app/components/dialogs/DialogAddMiner.tsx +++ b/app/components/dialogs/DialogAddMiner.tsx @@ -69,11 +69,11 @@ export default function DialogAddMiner({ pair, isOpen, onClose }: IProps) { const addressIcon = isValidPolkadotAddress(data) ? : ; return ( - +
- +
- +
{t("dlg_wallet.lbl_keep_seed")}
{data.mnemonic}
@@ -60,7 +60,7 @@ export default function DialogCreateAddress({ isOpen, onClose }: IProps) {
} + noResults={} onItemSelect={setRegistrar} popoverProps={{ matchTargetWidth: true }} - fill={true} + fill disabled={isIdentityLoading} >