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() {