From 8e614f5692da7ab68d41fe5a8869e99abbea313b Mon Sep 17 00:00:00 2001 From: evavirseda Date: Thu, 26 Dec 2024 19:03:24 +0100 Subject: [PATCH] feat: remove debris and add tsconfig --- apps/core/src/components/Inputs/AddressInput.tsx | 2 +- .../components/buttons/ViewTxnOnExplorerButton.tsx | 5 +++-- apps/core/src/components/cards/BalanceChanges.tsx | 2 +- apps/core/src/components/cards/ObjectChanges.tsx | 2 +- .../core/src/components/collapsible/Collapsible.tsx | 2 +- apps/core/src/components/lists/ExpandableList.tsx | 2 +- apps/core/tsconfig.json | 13 +++++++++++++ .../src/pages/validator/ValidatorDetails.tsx | 2 +- apps/explorer/src/pages/validators/Validators.tsx | 2 +- .../atoms/key-value-info/KeyValueInfo.tsx | 2 +- .../src/lib/components/atoms/list-item/ListItem.tsx | 2 +- .../src/lib/components/atoms/tooltip/Tooltip.tsx | 2 +- .../molecules/display-stats/DisplayStats.tsx | 2 +- .../src/lib/components/molecules/search/Search.tsx | 2 +- .../molecules/segmented-button/SegmentedButton.tsx | 2 +- .../components/organisms/accordion/Accordion.tsx | 2 +- apps/wallet-dashboard/app/(protected)/layout.tsx | 2 +- .../components/Dialogs/Assets/AssetDialog.tsx | 2 +- .../Dialogs/SendToken/SendTokenDialog.tsx | 2 +- .../components/Dialogs/Staking/StakeDialog.tsx | 2 +- .../Staking/views/EnterTimelockedAmountView.tsx | 2 +- .../Dialogs/migration/MigrationDialog.tsx | 2 +- apps/wallet-dashboard/components/Input.tsx | 2 -- apps/wallet-dashboard/components/VirtualList.tsx | 4 ++-- apps/wallet-dashboard/components/coins/MyCoins.tsx | 2 +- .../components/transactions/TransactionTile.tsx | 2 +- .../src/ui/app/components/OutsideClickHandler.tsx | 2 +- .../components/accounts/UnlockAccountContext.tsx | 9 +-------- .../ui/app/pages/accounts/manage/AccountGroup.tsx | 2 +- 29 files changed, 43 insertions(+), 38 deletions(-) create mode 100644 apps/core/tsconfig.json diff --git a/apps/core/src/components/Inputs/AddressInput.tsx b/apps/core/src/components/Inputs/AddressInput.tsx index 63920a9afe0..75d80154ea0 100644 --- a/apps/core/src/components/Inputs/AddressInput.tsx +++ b/apps/core/src/components/Inputs/AddressInput.tsx @@ -5,7 +5,7 @@ import { Input, InputType } from '@iota/apps-ui-kit'; import { Close } from '@iota/ui-icons'; import { useIotaAddressValidation } from '../../hooks'; -import React, { useCallback } from 'react'; +import { useCallback } from 'react'; import { useField, useFormikContext } from 'formik'; export interface AddressInputProps { diff --git a/apps/core/src/components/buttons/ViewTxnOnExplorerButton.tsx b/apps/core/src/components/buttons/ViewTxnOnExplorerButton.tsx index 247241de188..1ad3734b4ee 100644 --- a/apps/core/src/components/buttons/ViewTxnOnExplorerButton.tsx +++ b/apps/core/src/components/buttons/ViewTxnOnExplorerButton.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React, { JSX } from 'react'; import { Button, ButtonType, LoadingIndicator } from '@iota/apps-ui-kit'; import { ArrowTopRight } from '@iota/ui-icons'; @@ -9,7 +8,9 @@ interface ViewTxnOnExplorerButtonProps { digest?: string; } -export function ViewTxnOnExplorerButton({ digest }: ViewTxnOnExplorerButtonProps): JSX.Element { +export function ViewTxnOnExplorerButton({ + digest, +}: ViewTxnOnExplorerButtonProps): React.JSX.Element { return (