From a653feeb46fcedc52ecf7e4445707cf352258b55 Mon Sep 17 00:00:00 2001 From: evavirseda Date: Tue, 24 Dec 2024 09:22:24 +0100 Subject: [PATCH 1/6] feat: remove unnecessary react import --- apps/core/src/components/Inputs/SendTokenFormInput.tsx | 1 - apps/core/src/components/QR.tsx | 1 - apps/core/src/components/cards/ObjectChangeDisplay.tsx | 1 - apps/core/src/components/coin/CoinIcon.tsx | 1 - apps/core/src/components/coin/CoinItem.tsx | 1 - apps/core/src/components/gas/GasFees.tsx | 1 - apps/core/src/components/gas/GasSummary.tsx | 1 - apps/core/src/components/stake/StakedCard.tsx | 1 - apps/core/src/components/transaction/TransactionReceipt.tsx | 1 - .../src/components/transaction/amount/TransactionAmount.tsx | 1 - .../src/components/transaction/info/StakeTransactionInfo.tsx | 1 - .../components/transaction/info/UnstakeTransactionInfo.tsx | 1 - .../components/transaction/summary/TransactionSummary.tsx | 2 +- apps/explorer/src/index.tsx | 1 - apps/ui-kit/src/lib/components/atoms/badge/Badge.tsx | 1 - .../lib/components/atoms/button-segment/ButtonSegment.tsx | 1 - apps/ui-kit/src/lib/components/atoms/button/Button.tsx | 1 - apps/ui-kit/src/lib/components/atoms/divider/Divider.tsx | 1 - apps/ui-kit/src/lib/components/atoms/info-box/InfoBox.tsx | 1 - .../ui-kit/src/lib/components/atoms/label-text/LabelText.tsx | 1 - .../components/atoms/loading-indicator/LoadingIndicator.tsx | 1 - apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx | 1 - .../src/lib/components/atoms/radio-button/RadioButton.tsx | 1 - .../components/atoms/visual-asset-card/VisualAssetCard.tsx | 1 - apps/ui-kit/src/lib/components/molecules/account/Account.tsx | 1 - apps/ui-kit/src/lib/components/molecules/address/Address.tsx | 1 - apps/ui-kit/src/lib/components/molecules/card/Card.tsx | 1 - apps/ui-kit/src/lib/components/molecules/card/CardImage.tsx | 1 - .../src/lib/components/molecules/navbar-item/NavbarItem.tsx | 1 - .../molecules/navbar-item/NavbarItemHorizontal.tsx | 1 - .../components/molecules/navbar-item/NavbarItemVertical.tsx | 1 - .../molecules/table-header-cell/TableHeaderCell.tsx | 5 +++-- .../src/lib/components/organisms/navbar/NavbarSlideout.tsx | 1 - .../storybook/stories/components/VariableSpacingShowcase.tsx | 1 - .../src/storybook/stories/molecules/DisplayStats.stories.tsx | 1 - .../src/storybook/stories/molecules/NavbarItem.stories.tsx | 1 - apps/wallet-dashboard/app/(protected)/activity/page.tsx | 1 - apps/wallet-dashboard/components/AppList/AppList.tsx | 1 - apps/wallet-dashboard/components/Banner.tsx | 1 - apps/wallet-dashboard/components/Box.tsx | 4 ++-- apps/wallet-dashboard/components/Buttons/Button.tsx | 1 - .../components/Dialogs/Assets/views/DetailsView.tsx | 1 - .../components/Dialogs/Assets/views/SendView.tsx | 1 - .../components/Dialogs/Staking/views/DetailsView.tsx | 1 - .../Dialogs/Staking/views/EnterAmountDialogLayout.tsx | 1 - .../components/Dialogs/Staking/views/EnterAmountView.tsx | 1 - .../components/Dialogs/Staking/views/SelectValidatorView.tsx | 2 +- .../Dialogs/migration/views/ConfirmMigrationView.tsx | 1 - .../components/Dialogs/settings/SettingsDialog.tsx | 1 - .../Dialogs/settings/views/NetworkSelectorView.tsx | 1 - .../components/Dialogs/settings/views/SettingsListView.tsx | 1 - .../Dialogs/transaction/TransactionDetailsLayout.tsx | 2 +- apps/wallet-dashboard/components/RouteLink.tsx | 1 - apps/wallet-dashboard/components/tiles/VisualAssetTile.tsx | 1 - .../components/transactions/TransactionsList.tsx | 1 - 55 files changed, 8 insertions(+), 57 deletions(-) diff --git a/apps/core/src/components/Inputs/SendTokenFormInput.tsx b/apps/core/src/components/Inputs/SendTokenFormInput.tsx index 3e97b41c707..5a0862e6b37 100644 --- a/apps/core/src/components/Inputs/SendTokenFormInput.tsx +++ b/apps/core/src/components/Inputs/SendTokenFormInput.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { ButtonPill, Input, InputType } from '@iota/apps-ui-kit'; import { CoinStruct } from '@iota/iota-sdk/client'; import { useFormatCoin, useGasBudgetEstimation } from '../../hooks'; diff --git a/apps/core/src/components/QR.tsx b/apps/core/src/components/QR.tsx index 7ab47b246e3..2c4b806b161 100644 --- a/apps/core/src/components/QR.tsx +++ b/apps/core/src/components/QR.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { QRCodeSVG } from 'qrcode.react'; export enum QRLevel { diff --git a/apps/core/src/components/cards/ObjectChangeDisplay.tsx b/apps/core/src/components/cards/ObjectChangeDisplay.tsx index 99d39a8f62d..9ffb78103f0 100644 --- a/apps/core/src/components/cards/ObjectChangeDisplay.tsx +++ b/apps/core/src/components/cards/ObjectChangeDisplay.tsx @@ -2,7 +2,6 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { type IotaObjectChangeWithDisplay, ExplorerLinkType, ImageIcon } from '../../'; import { Card, CardAction, CardActionType, CardBody, CardImage, CardType } from '@iota/apps-ui-kit'; import { ArrowTopRight } from '@iota/ui-icons'; diff --git a/apps/core/src/components/coin/CoinIcon.tsx b/apps/core/src/components/coin/CoinIcon.tsx index e5cd595c6cc..2d26ec605a9 100644 --- a/apps/core/src/components/coin/CoinIcon.tsx +++ b/apps/core/src/components/coin/CoinIcon.tsx @@ -2,7 +2,6 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { useCoinMetadata, ImageIcon, ImageIconSize } from '../../'; import { IotaLogoMark } from '@iota/ui-icons'; import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils'; diff --git a/apps/core/src/components/coin/CoinItem.tsx b/apps/core/src/components/coin/CoinItem.tsx index 8e2062efa26..65eef1cb490 100644 --- a/apps/core/src/components/coin/CoinItem.tsx +++ b/apps/core/src/components/coin/CoinItem.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { Card, CardAction, diff --git a/apps/core/src/components/gas/GasFees.tsx b/apps/core/src/components/gas/GasFees.tsx index 19d4fad5c0d..95b02da90af 100644 --- a/apps/core/src/components/gas/GasFees.tsx +++ b/apps/core/src/components/gas/GasFees.tsx @@ -2,7 +2,6 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { TitleSize, Badge, BadgeType, Title, Panel } from '@iota/apps-ui-kit'; import { Collapsible, GasSummary, type RenderExplorerLink, type GasSummaryType } from '../../'; diff --git a/apps/core/src/components/gas/GasSummary.tsx b/apps/core/src/components/gas/GasSummary.tsx index 8bad6d508d4..04479a48e87 100644 --- a/apps/core/src/components/gas/GasSummary.tsx +++ b/apps/core/src/components/gas/GasSummary.tsx @@ -2,7 +2,6 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { ExplorerLinkType, useFormatCoin, type GasSummaryType } from '../../'; import { RenderExplorerLink } from '../../types'; import { formatAddress, IOTA_TYPE_ARG } from '@iota/iota-sdk/utils'; diff --git a/apps/core/src/components/stake/StakedCard.tsx b/apps/core/src/components/stake/StakedCard.tsx index 92f6b0e8184..efaa5a0a2e5 100644 --- a/apps/core/src/components/stake/StakedCard.tsx +++ b/apps/core/src/components/stake/StakedCard.tsx @@ -9,7 +9,6 @@ import { useIotaClientQuery } from '@iota/dapp-kit'; import { ImageIcon } from '../icon'; import { ExtendedDelegatedStake } from '../../utils'; import { useFormatCoin, useStakeRewardStatus } from '../../hooks'; -import React from 'react'; interface StakedCardProps { extendedStake: ExtendedDelegatedStake; diff --git a/apps/core/src/components/transaction/TransactionReceipt.tsx b/apps/core/src/components/transaction/TransactionReceipt.tsx index 99cac6112af..45c925c76e7 100644 --- a/apps/core/src/components/transaction/TransactionReceipt.tsx +++ b/apps/core/src/components/transaction/TransactionReceipt.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { InfoBox, InfoBoxStyle, InfoBoxType } from '@iota/apps-ui-kit'; import { formatDate, type useTransactionSummary } from '../../hooks'; import { CheckmarkFilled } from '@iota/ui-icons'; diff --git a/apps/core/src/components/transaction/amount/TransactionAmount.tsx b/apps/core/src/components/transaction/amount/TransactionAmount.tsx index 6305dd2ae88..f65d9d4365f 100644 --- a/apps/core/src/components/transaction/amount/TransactionAmount.tsx +++ b/apps/core/src/components/transaction/amount/TransactionAmount.tsx @@ -2,7 +2,6 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { ImageIconSize, CoinIcon } from '../..'; import { Card, diff --git a/apps/core/src/components/transaction/info/StakeTransactionInfo.tsx b/apps/core/src/components/transaction/info/StakeTransactionInfo.tsx index 47f00c48d4f..f2802ad809a 100644 --- a/apps/core/src/components/transaction/info/StakeTransactionInfo.tsx +++ b/apps/core/src/components/transaction/info/StakeTransactionInfo.tsx @@ -2,7 +2,6 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { Divider, KeyValueInfo, Panel, TooltipPosition } from '@iota/apps-ui-kit'; import { type GasSummaryType, useStakeTxnInfo, GasSummary } from '../../../'; import { RenderExplorerLink } from '../../../types'; diff --git a/apps/core/src/components/transaction/info/UnstakeTransactionInfo.tsx b/apps/core/src/components/transaction/info/UnstakeTransactionInfo.tsx index 94e120821d3..50061fcb473 100644 --- a/apps/core/src/components/transaction/info/UnstakeTransactionInfo.tsx +++ b/apps/core/src/components/transaction/info/UnstakeTransactionInfo.tsx @@ -2,7 +2,6 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { TransactionAmount } from '../amount'; import type { IotaEvent } from '@iota/iota-sdk/client'; import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils'; diff --git a/apps/core/src/components/transaction/summary/TransactionSummary.tsx b/apps/core/src/components/transaction/summary/TransactionSummary.tsx index 090d84d8ece..cd669d6cc49 100644 --- a/apps/core/src/components/transaction/summary/TransactionSummary.tsx +++ b/apps/core/src/components/transaction/summary/TransactionSummary.tsx @@ -1,7 +1,7 @@ // Copyright (c) Mysten Labs, Inc. // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; + import { type TransactionSummaryType } from '../../..'; import { BalanceChanges, ObjectChanges } from '../../cards'; import { LoadingIndicator, Title, TitleSize } from '@iota/apps-ui-kit'; diff --git a/apps/explorer/src/index.tsx b/apps/explorer/src/index.tsx index 670a7e6ad93..aad5ea550a5 100644 --- a/apps/explorer/src/index.tsx +++ b/apps/explorer/src/index.tsx @@ -9,7 +9,6 @@ import { QueryClientProvider } from '@tanstack/react-query'; import React from 'react'; import ReactDOM from 'react-dom/client'; import { RouterProvider } from 'react-router-dom'; - import { growthbook, initAmplitude, initSentry, queryClient } from './lib/utils'; import { router } from './pages'; diff --git a/apps/ui-kit/src/lib/components/atoms/badge/Badge.tsx b/apps/ui-kit/src/lib/components/atoms/badge/Badge.tsx index 390b8078342..c6dcba7dff9 100644 --- a/apps/ui-kit/src/lib/components/atoms/badge/Badge.tsx +++ b/apps/ui-kit/src/lib/components/atoms/badge/Badge.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { BadgeType } from './badge.enums'; import { BACKGROUND_COLORS, BADGE_TEXT_CLASS, BORDER_COLORS, TEXT_COLORS } from './badge.classes'; diff --git a/apps/ui-kit/src/lib/components/atoms/button-segment/ButtonSegment.tsx b/apps/ui-kit/src/lib/components/atoms/button-segment/ButtonSegment.tsx index f3ff331c2d8..6c092fab833 100644 --- a/apps/ui-kit/src/lib/components/atoms/button-segment/ButtonSegment.tsx +++ b/apps/ui-kit/src/lib/components/atoms/button-segment/ButtonSegment.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { BACKGROUND_COLORS, BACKGROUND_COLORS_SELECTED, diff --git a/apps/ui-kit/src/lib/components/atoms/button/Button.tsx b/apps/ui-kit/src/lib/components/atoms/button/Button.tsx index b35d566c50f..793aa5d8cb1 100644 --- a/apps/ui-kit/src/lib/components/atoms/button/Button.tsx +++ b/apps/ui-kit/src/lib/components/atoms/button/Button.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { ButtonHtmlType, ButtonSize, ButtonType } from './button.enums'; import { PADDINGS, diff --git a/apps/ui-kit/src/lib/components/atoms/divider/Divider.tsx b/apps/ui-kit/src/lib/components/atoms/divider/Divider.tsx index a9391cfe151..996bc0ac005 100644 --- a/apps/ui-kit/src/lib/components/atoms/divider/Divider.tsx +++ b/apps/ui-kit/src/lib/components/atoms/divider/Divider.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { DividerType } from './divider.enums'; import cx from 'classnames'; import { BACKGROUND_COLORS, DIVIDER_FULL_WIDTH } from './divider.classes'; diff --git a/apps/ui-kit/src/lib/components/atoms/info-box/InfoBox.tsx b/apps/ui-kit/src/lib/components/atoms/info-box/InfoBox.tsx index e8548979d21..7fb7216f423 100644 --- a/apps/ui-kit/src/lib/components/atoms/info-box/InfoBox.tsx +++ b/apps/ui-kit/src/lib/components/atoms/info-box/InfoBox.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { InfoBoxStyle, InfoBoxType } from './info-box.enums'; import { BACKGROUND_COLORS, ICON_COLORS } from './info-box.classes'; diff --git a/apps/ui-kit/src/lib/components/atoms/label-text/LabelText.tsx b/apps/ui-kit/src/lib/components/atoms/label-text/LabelText.tsx index 5135219c33c..a4064864e09 100644 --- a/apps/ui-kit/src/lib/components/atoms/label-text/LabelText.tsx +++ b/apps/ui-kit/src/lib/components/atoms/label-text/LabelText.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { LabelTextSize } from './labelText.enums'; import { LABEL_TEXT_SIZE, SUPPORTING_TEXT_SIZE, TEXT_SIZE } from './labelText.classes'; diff --git a/apps/ui-kit/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx b/apps/ui-kit/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx index 86160c55771..547571e3a7f 100644 --- a/apps/ui-kit/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx +++ b/apps/ui-kit/src/lib/components/atoms/loading-indicator/LoadingIndicator.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { Loader } from '@iota/ui-icons'; diff --git a/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx b/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx index d5eae32a334..0f87336f524 100644 --- a/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx +++ b/apps/ui-kit/src/lib/components/atoms/panel/Panel.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; interface PanelProps { diff --git a/apps/ui-kit/src/lib/components/atoms/radio-button/RadioButton.tsx b/apps/ui-kit/src/lib/components/atoms/radio-button/RadioButton.tsx index 54bbb8277de..02a768fe64c 100644 --- a/apps/ui-kit/src/lib/components/atoms/radio-button/RadioButton.tsx +++ b/apps/ui-kit/src/lib/components/atoms/radio-button/RadioButton.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { RadioOn, RadioOff } from '@iota/ui-icons'; diff --git a/apps/ui-kit/src/lib/components/atoms/visual-asset-card/VisualAssetCard.tsx b/apps/ui-kit/src/lib/components/atoms/visual-asset-card/VisualAssetCard.tsx index 1dbcf4731cf..99cfe9b1271 100644 --- a/apps/ui-kit/src/lib/components/atoms/visual-asset-card/VisualAssetCard.tsx +++ b/apps/ui-kit/src/lib/components/atoms/visual-asset-card/VisualAssetCard.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { VisualAssetType } from './visual-asset-card.enums'; import { ButtonUnstyled } from '../button'; import { MoreHoriz } from '@iota/ui-icons'; diff --git a/apps/ui-kit/src/lib/components/molecules/account/Account.tsx b/apps/ui-kit/src/lib/components/molecules/account/Account.tsx index e62f598ad1b..b836d60b306 100644 --- a/apps/ui-kit/src/lib/components/molecules/account/Account.tsx +++ b/apps/ui-kit/src/lib/components/molecules/account/Account.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { ButtonUnstyled } from '../../atoms/button'; import { Badge, BadgeType } from '../../atoms'; diff --git a/apps/ui-kit/src/lib/components/molecules/address/Address.tsx b/apps/ui-kit/src/lib/components/molecules/address/Address.tsx index 869048a62a2..60cf5f9c5b4 100644 --- a/apps/ui-kit/src/lib/components/molecules/address/Address.tsx +++ b/apps/ui-kit/src/lib/components/molecules/address/Address.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { Copy, ArrowTopRight } from '@iota/ui-icons'; import { ButtonUnstyled } from '../../atoms/button'; diff --git a/apps/ui-kit/src/lib/components/molecules/card/Card.tsx b/apps/ui-kit/src/lib/components/molecules/card/Card.tsx index cc1b8368349..34c9ca68ef6 100644 --- a/apps/ui-kit/src/lib/components/molecules/card/Card.tsx +++ b/apps/ui-kit/src/lib/components/molecules/card/Card.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { CARD_DISABLED_CLASSES, CARD_TYPE_CLASSES } from './card.classes'; import { CardType } from './card.enums'; diff --git a/apps/ui-kit/src/lib/components/molecules/card/CardImage.tsx b/apps/ui-kit/src/lib/components/molecules/card/CardImage.tsx index 6f4efc1e9d7..1a0048dd2fa 100644 --- a/apps/ui-kit/src/lib/components/molecules/card/CardImage.tsx +++ b/apps/ui-kit/src/lib/components/molecules/card/CardImage.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { ImageType, ImageShape } from './card.enums'; import { IMAGE_BG_CLASSES, IMAGE_VARIANT_CLASSES } from './card.classes'; diff --git a/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItem.tsx b/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItem.tsx index 52eb085081a..a9864a14a17 100644 --- a/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItem.tsx +++ b/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItem.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { NavbarItemHorizontal } from './NavbarItemHorizontal'; import { NavbarItemVertical } from './NavbarItemVertical'; import { NavbarItemType } from './navbarItem.enums'; diff --git a/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx b/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx index 328f90aa384..ac0b7fceb26 100644 --- a/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +++ b/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { BADGE_WITH_TEXT, diff --git a/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx b/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx index 0212d273523..039ff6fcaef 100644 --- a/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +++ b/apps/ui-kit/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import cx from 'classnames'; import { SELECTED_BACKGROUND, diff --git a/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx b/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx index 84beb087ecb..86e95593dfd 100644 --- a/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +++ b/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx @@ -1,10 +1,11 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; + import { SortByDown, SortByUp } from '@iota/ui-icons'; import cx from 'classnames'; import { Checkbox } from '@/lib'; import { TableHeaderCellSortOrder } from './table-header-cell.enums'; +import { useState } from 'react'; export interface TableHeaderCellProps { /** @@ -64,7 +65,7 @@ export function TableHeaderCell({ onSortClick, onCheckboxChange, }: TableHeaderCellProps): JSX.Element { - const [sortOrder, setSortOrder] = React.useState( + const [sortOrder, setSortOrder] = useState( TableHeaderCellSortOrder.Asc, ); diff --git a/apps/ui-kit/src/lib/components/organisms/navbar/NavbarSlideout.tsx b/apps/ui-kit/src/lib/components/organisms/navbar/NavbarSlideout.tsx index ad2055b8964..51e7048f9a8 100644 --- a/apps/ui-kit/src/lib/components/organisms/navbar/NavbarSlideout.tsx +++ b/apps/ui-kit/src/lib/components/organisms/navbar/NavbarSlideout.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { ArrowBack } from '@iota/ui-icons'; import cx from 'classnames'; import { Button, ButtonType, NavbarItem, NavbarItemType } from '@/components'; diff --git a/apps/ui-kit/src/storybook/stories/components/VariableSpacingShowcase.tsx b/apps/ui-kit/src/storybook/stories/components/VariableSpacingShowcase.tsx index 761e9f883e5..5822fdf8ea2 100644 --- a/apps/ui-kit/src/storybook/stories/components/VariableSpacingShowcase.tsx +++ b/apps/ui-kit/src/storybook/stories/components/VariableSpacingShowcase.tsx @@ -4,7 +4,6 @@ import { Button } from '@/lib'; import { Showcase } from '@/storybook/blocks'; import { VARIABLE_GAP_CLASSES, VARIABLE_PADDING_CLASSES } from '@/storybook/constants'; -import React from 'react'; export function VariableSpacingShowcase() { return ( diff --git a/apps/ui-kit/src/storybook/stories/molecules/DisplayStats.stories.tsx b/apps/ui-kit/src/storybook/stories/molecules/DisplayStats.stories.tsx index e892659ce9d..9bc46e2f7e3 100644 --- a/apps/ui-kit/src/storybook/stories/molecules/DisplayStats.stories.tsx +++ b/apps/ui-kit/src/storybook/stories/molecules/DisplayStats.stories.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { DisplayStats, TooltipPosition, DisplayStatsType, DisplayStatsSize } from '@/components'; diff --git a/apps/ui-kit/src/storybook/stories/molecules/NavbarItem.stories.tsx b/apps/ui-kit/src/storybook/stories/molecules/NavbarItem.stories.tsx index aad83ca81f8..8ee33fd26bd 100644 --- a/apps/ui-kit/src/storybook/stories/molecules/NavbarItem.stories.tsx +++ b/apps/ui-kit/src/storybook/stories/molecules/NavbarItem.stories.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { NavbarItem, NavbarItemType } from '@/components'; import { Home } from '@iota/ui-icons'; diff --git a/apps/wallet-dashboard/app/(protected)/activity/page.tsx b/apps/wallet-dashboard/app/(protected)/activity/page.tsx index 14f4bc516da..7e89ca90b24 100644 --- a/apps/wallet-dashboard/app/(protected)/activity/page.tsx +++ b/apps/wallet-dashboard/app/(protected)/activity/page.tsx @@ -3,7 +3,6 @@ 'use client'; -import React from 'react'; import { Panel, Title, TitleSize } from '@iota/apps-ui-kit'; import { TransactionsList } from '@/components'; diff --git a/apps/wallet-dashboard/components/AppList/AppList.tsx b/apps/wallet-dashboard/components/AppList/AppList.tsx index 0ccd665cf95..543250637c6 100644 --- a/apps/wallet-dashboard/components/AppList/AppList.tsx +++ b/apps/wallet-dashboard/components/AppList/AppList.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import Image from 'next/image'; import { useAppsBackend } from '@iota/core'; import { useQuery } from '@tanstack/react-query'; diff --git a/apps/wallet-dashboard/components/Banner.tsx b/apps/wallet-dashboard/components/Banner.tsx index aa697f9f7b5..c0e4bcf294c 100644 --- a/apps/wallet-dashboard/components/Banner.tsx +++ b/apps/wallet-dashboard/components/Banner.tsx @@ -2,7 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 import { Button, ButtonSize, ButtonType, Panel } from '@iota/apps-ui-kit'; -import React from 'react'; interface BannerProps { videoSrc: string; diff --git a/apps/wallet-dashboard/components/Box.tsx b/apps/wallet-dashboard/components/Box.tsx index 3b9b285ea6e..5857965536e 100644 --- a/apps/wallet-dashboard/components/Box.tsx +++ b/apps/wallet-dashboard/components/Box.tsx @@ -1,10 +1,10 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; +import { ReactNode } from 'react'; interface BoxProps { - children: React.ReactNode; + children: ReactNode; title?: string; } diff --git a/apps/wallet-dashboard/components/Buttons/Button.tsx b/apps/wallet-dashboard/components/Buttons/Button.tsx index b15149e1201..71af7868463 100644 --- a/apps/wallet-dashboard/components/Buttons/Button.tsx +++ b/apps/wallet-dashboard/components/Buttons/Button.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; interface ButtonProps { onClick?: (event: React.MouseEvent) => void; diff --git a/apps/wallet-dashboard/components/Dialogs/Assets/views/DetailsView.tsx b/apps/wallet-dashboard/components/Dialogs/Assets/views/DetailsView.tsx index 8520d62a484..187d5d653d6 100644 --- a/apps/wallet-dashboard/components/Dialogs/Assets/views/DetailsView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Assets/views/DetailsView.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { ExplorerLinkType, useNftDetails, Collapsible, useNFTBasicData } from '@iota/core'; import { Button, diff --git a/apps/wallet-dashboard/components/Dialogs/Assets/views/SendView.tsx b/apps/wallet-dashboard/components/Dialogs/Assets/views/SendView.tsx index 3d0350478ac..7d95a98c1f6 100644 --- a/apps/wallet-dashboard/components/Dialogs/Assets/views/SendView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Assets/views/SendView.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { AddressInput, useNftDetails } from '@iota/core'; import { useFormikContext } from 'formik'; import { DialogLayoutFooter, DialogLayoutBody } from '../../layout'; diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/DetailsView.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/DetailsView.tsx index 48ebf1b4f3c..b030a6fa299 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/DetailsView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/DetailsView.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { ExtendedDelegatedStake, ImageIcon, diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountDialogLayout.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountDialogLayout.tsx index 9ec233b1838..3e17a7ecf3e 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountDialogLayout.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountDialogLayout.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { useFormatCoin, useStakeTxnInfo } from '@iota/core'; import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils'; import { diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountView.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountView.tsx index b90de664794..99c90a5489f 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/EnterAmountView.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { useFormatCoin, useBalance, CoinFormat, parseAmount, useCoinMetadata } from '@iota/core'; import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils'; import { useFormikContext } from 'formik'; diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx index 626cbf05990..977c7bf131c 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx @@ -1,7 +1,7 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; +; import { Button, Header } from '@iota/apps-ui-kit'; import { Validator } from './Validator'; diff --git a/apps/wallet-dashboard/components/Dialogs/migration/views/ConfirmMigrationView.tsx b/apps/wallet-dashboard/components/Dialogs/migration/views/ConfirmMigrationView.tsx index 7066a922187..c81db02dba5 100644 --- a/apps/wallet-dashboard/components/Dialogs/migration/views/ConfirmMigrationView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/migration/views/ConfirmMigrationView.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { MigrationObjectLoading, VirtualList } from '@/components'; import { useCurrentAccount } from '@iota/dapp-kit'; import { IotaObjectData } from '@iota/iota-sdk/client'; diff --git a/apps/wallet-dashboard/components/Dialogs/settings/SettingsDialog.tsx b/apps/wallet-dashboard/components/Dialogs/settings/SettingsDialog.tsx index 447c3e3a4e9..75c40efaf9d 100644 --- a/apps/wallet-dashboard/components/Dialogs/settings/SettingsDialog.tsx +++ b/apps/wallet-dashboard/components/Dialogs/settings/SettingsDialog.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { Dialog } from '@iota/apps-ui-kit'; import { SettingsDialogView } from './enums'; import { SettingsListView, NetworkSelectorView } from './views'; diff --git a/apps/wallet-dashboard/components/Dialogs/settings/views/NetworkSelectorView.tsx b/apps/wallet-dashboard/components/Dialogs/settings/views/NetworkSelectorView.tsx index 9eb2d3a80d4..6d1c5e97707 100644 --- a/apps/wallet-dashboard/components/Dialogs/settings/views/NetworkSelectorView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/settings/views/NetworkSelectorView.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { Header, RadioButton } from '@iota/apps-ui-kit'; import { DialogLayout, DialogLayoutBody } from '../../layout'; import { NetworkConfiguration } from '@iota/iota-sdk/client'; diff --git a/apps/wallet-dashboard/components/Dialogs/settings/views/SettingsListView.tsx b/apps/wallet-dashboard/components/Dialogs/settings/views/SettingsListView.tsx index 7e9d484de73..69468184e4e 100644 --- a/apps/wallet-dashboard/components/Dialogs/settings/views/SettingsListView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/settings/views/SettingsListView.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { Card, CardAction, diff --git a/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx b/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx index 44bc9474a6a..53ccba5219e 100644 --- a/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx +++ b/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx @@ -1,6 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; +; import { ExplorerLink } from '@/components'; import { ExtendedTransaction } from '@/lib/interfaces'; import { Header, LoadingIndicator } from '@iota/apps-ui-kit'; diff --git a/apps/wallet-dashboard/components/RouteLink.tsx b/apps/wallet-dashboard/components/RouteLink.tsx index f4395dcd421..8df5ba2a9ed 100644 --- a/apps/wallet-dashboard/components/RouteLink.tsx +++ b/apps/wallet-dashboard/components/RouteLink.tsx @@ -4,7 +4,6 @@ 'use client'; import { usePathname } from 'next/navigation'; -import React from 'react'; import Link from 'next/link'; interface RouteLinkProps { diff --git a/apps/wallet-dashboard/components/tiles/VisualAssetTile.tsx b/apps/wallet-dashboard/components/tiles/VisualAssetTile.tsx index 642d06daff0..8103bc6fdc7 100644 --- a/apps/wallet-dashboard/components/tiles/VisualAssetTile.tsx +++ b/apps/wallet-dashboard/components/tiles/VisualAssetTile.tsx @@ -4,7 +4,6 @@ 'use client'; import { IotaObjectData } from '@iota/iota-sdk/client'; -import React from 'react'; import { useGetNFTDisplay } from '@iota/core'; import { FlexDirection } from '@/lib/ui/enums'; import { VisualAssetCard, VisualAssetType, type VisualAssetCardProps } from '@iota/apps-ui-kit'; diff --git a/apps/wallet-dashboard/components/transactions/TransactionsList.tsx b/apps/wallet-dashboard/components/transactions/TransactionsList.tsx index 526329aed43..e3d70d20aaf 100644 --- a/apps/wallet-dashboard/components/transactions/TransactionsList.tsx +++ b/apps/wallet-dashboard/components/transactions/TransactionsList.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -import React from 'react'; import { useCurrentAccount } from '@iota/dapp-kit'; import { VirtualList, TransactionTile } from '@/components'; import { useQueryTransactionsByAddress } from '@iota/core'; From bd2d7965c37d68ffb8f8ea57af5ab51156083f59 Mon Sep 17 00:00:00 2001 From: evavirseda Date: Tue, 24 Dec 2024 09:27:16 +0100 Subject: [PATCH 2/6] fix: remove debris --- apps/wallet-dashboard/components/Buttons/Button.tsx | 1 - .../components/Dialogs/Staking/views/SelectValidatorView.tsx | 2 -- .../components/Dialogs/transaction/TransactionDetailsLayout.tsx | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/wallet-dashboard/components/Buttons/Button.tsx b/apps/wallet-dashboard/components/Buttons/Button.tsx index 71af7868463..cae11ea34c6 100644 --- a/apps/wallet-dashboard/components/Buttons/Button.tsx +++ b/apps/wallet-dashboard/components/Buttons/Button.tsx @@ -1,7 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 - interface ButtonProps { onClick?: (event: React.MouseEvent) => void; children: React.ReactNode; diff --git a/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx b/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx index 977c7bf131c..cd3729b7a7d 100644 --- a/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx +++ b/apps/wallet-dashboard/components/Dialogs/Staking/views/SelectValidatorView.tsx @@ -1,9 +1,7 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -; import { Button, Header } from '@iota/apps-ui-kit'; - import { Validator } from './Validator'; import { DialogLayout, DialogLayoutBody, DialogLayoutFooter } from '../../layout'; diff --git a/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx b/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx index 53ccba5219e..6251ea86517 100644 --- a/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx +++ b/apps/wallet-dashboard/components/Dialogs/transaction/TransactionDetailsLayout.tsx @@ -1,6 +1,6 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -; + import { ExplorerLink } from '@/components'; import { ExtendedTransaction } from '@/lib/interfaces'; import { Header, LoadingIndicator } from '@iota/apps-ui-kit'; From ac22dd30152e037f1929a2e4cf1161b1fa67e245 Mon Sep 17 00:00:00 2001 From: evavirseda Date: Tue, 24 Dec 2024 09:34:33 +0100 Subject: [PATCH 3/6] fix import --- apps/core/src/components/coin/CoinIcon.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/core/src/components/coin/CoinIcon.tsx b/apps/core/src/components/coin/CoinIcon.tsx index 2d26ec605a9..8a38d1ecf4a 100644 --- a/apps/core/src/components/coin/CoinIcon.tsx +++ b/apps/core/src/components/coin/CoinIcon.tsx @@ -6,6 +6,7 @@ import { useCoinMetadata, ImageIcon, ImageIconSize } from '../../'; import { IotaLogoMark } from '@iota/ui-icons'; import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils'; import cx from 'clsx'; +import React from 'react'; interface NonIotaCoinProps { coinType: string; From f72806573db0bdecf37477462196eb320da31443 Mon Sep 17 00:00:00 2001 From: evavirseda Date: Tue, 24 Dec 2024 09:37:05 +0100 Subject: [PATCH 4/6] feat: cleanup --- apps/core/src/components/coin/CoinIcon.tsx | 2 +- .../components/molecules/table-header-cell/TableHeaderCell.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/core/src/components/coin/CoinIcon.tsx b/apps/core/src/components/coin/CoinIcon.tsx index 8a38d1ecf4a..e5cd595c6cc 100644 --- a/apps/core/src/components/coin/CoinIcon.tsx +++ b/apps/core/src/components/coin/CoinIcon.tsx @@ -2,11 +2,11 @@ // Modifications Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +import React from 'react'; import { useCoinMetadata, ImageIcon, ImageIconSize } from '../../'; import { IotaLogoMark } from '@iota/ui-icons'; import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils'; import cx from 'clsx'; -import React from 'react'; interface NonIotaCoinProps { coinType: string; diff --git a/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx b/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx index 86e95593dfd..d88fc1ec23d 100644 --- a/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +++ b/apps/ui-kit/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx @@ -1,11 +1,11 @@ // Copyright (c) 2024 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +import { useState } from 'react'; import { SortByDown, SortByUp } from '@iota/ui-icons'; import cx from 'classnames'; import { Checkbox } from '@/lib'; import { TableHeaderCellSortOrder } from './table-header-cell.enums'; -import { useState } from 'react'; export interface TableHeaderCellProps { /** From 8e614f5692da7ab68d41fe5a8869e99abbea313b Mon Sep 17 00:00:00 2001 From: evavirseda Date: Thu, 26 Dec 2024 19:03:24 +0100 Subject: [PATCH 5/6] 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 (