{items?.map((object) =>
)}
diff --git a/apps/wallet/src/ui/app/pages/home/nfts/NonVisualAssets.tsx b/apps/wallet/src/ui/app/pages/home/nfts/NonVisualAssets.tsx
index 025f2000a98..9f1339e7d55 100644
--- a/apps/wallet/src/ui/app/pages/home/nfts/NonVisualAssets.tsx
+++ b/apps/wallet/src/ui/app/pages/home/nfts/NonVisualAssets.tsx
@@ -12,7 +12,7 @@ interface NonVisualAssetsProps {
items: IotaObjectData[];
}
-export default function NonVisualAssets({ items }: NonVisualAssetsProps) {
+export function NonVisualAssets({ items }: NonVisualAssetsProps) {
return (
{items?.length ? (
diff --git a/apps/wallet/src/ui/app/pages/home/nfts/VisualAssets.tsx b/apps/wallet/src/ui/app/pages/home/nfts/VisualAssets.tsx
index ce05c7e594a..c4e1e046bc5 100644
--- a/apps/wallet/src/ui/app/pages/home/nfts/VisualAssets.tsx
+++ b/apps/wallet/src/ui/app/pages/home/nfts/VisualAssets.tsx
@@ -15,7 +15,7 @@ interface VisualAssetsProps {
items: IotaObjectData[];
}
-export default function VisualAssets({ items }: VisualAssetsProps) {
+export function VisualAssets({ items }: VisualAssetsProps) {
const { hideAsset } = useHiddenAssets();
const kioskClient = useKioskClient();
diff --git a/apps/wallet/src/ui/app/pages/home/nfts/index.tsx b/apps/wallet/src/ui/app/pages/home/nfts/index.tsx
index a6af83c0ec0..30d5af7b648 100644
--- a/apps/wallet/src/ui/app/pages/home/nfts/index.tsx
+++ b/apps/wallet/src/ui/app/pages/home/nfts/index.tsx
@@ -15,9 +15,9 @@ import { useActiveAddress } from '_app/hooks/useActiveAddress';
import { Loading, NoData, PageTemplate } from '_components';
import { useGetNFTs } from '_src/ui/app/hooks/useGetNFTs';
import { useEffect, useMemo, useRef, useState } from 'react';
-import HiddenAssets from './HiddenAssets';
-import NonVisualAssets from './NonVisualAssets';
-import VisualAssets from './VisualAssets';
+import { HiddenAssets } from './HiddenAssets';
+import { NonVisualAssets } from './NonVisualAssets';
+import { VisualAssets } from './VisualAssets';
import { Warning } from '@iota/ui-icons';
import { useOnScreen } from '@iota/core';
@@ -42,7 +42,7 @@ const ASSET_CATEGORIES = [
},
];
-function NftsPage() {
+export function NftsPage() {
const [selectedAssetCategory, setSelectedAssetCategory] = useState
(null);
const observerElem = useRef(null);
const { isIntersecting } = useOnScreen(observerElem);
@@ -201,5 +201,3 @@ function NftsPage() {
);
}
-
-export default NftsPage;
diff --git a/apps/wallet/src/ui/app/pages/home/receipt/index.tsx b/apps/wallet/src/ui/app/pages/home/receipt/index.tsx
index 0d82f3f2a28..94d4fc614d9 100644
--- a/apps/wallet/src/ui/app/pages/home/receipt/index.tsx
+++ b/apps/wallet/src/ui/app/pages/home/receipt/index.tsx
@@ -12,7 +12,7 @@ import { InfoBox, InfoBoxType, InfoBoxStyle } from '@iota/apps-ui-kit';
import type { IotaTransactionBlockResponse } from '@iota/iota-sdk/client';
import { useGetTransaction } from '@iota/core';
-function ReceiptPage() {
+export function ReceiptPage() {
const location = useLocation();
const [searchParams] = useSearchParams();
const [showModal, setShowModal] = useState(true);
@@ -82,5 +82,3 @@ function ReceiptPage() {
);
}
-
-export default ReceiptPage;
diff --git a/apps/wallet/src/ui/app/pages/home/tokens/TokenDetailsPage.tsx b/apps/wallet/src/ui/app/pages/home/tokens/TokenDetailsPage.tsx
index 66083ed5272..cbf8ff70e02 100644
--- a/apps/wallet/src/ui/app/pages/home/tokens/TokenDetailsPage.tsx
+++ b/apps/wallet/src/ui/app/pages/home/tokens/TokenDetailsPage.tsx
@@ -2,10 +2,8 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0
-import TokenDetails from './TokensDetails';
+import { TokenDetails } from './TokensDetails';
-function TokenDetailsPage() {
+export function TokenDetailsPage() {
return ;
}
-
-export default TokenDetailsPage;
diff --git a/apps/wallet/src/ui/app/pages/home/tokens/TokensDetails.tsx b/apps/wallet/src/ui/app/pages/home/tokens/TokensDetails.tsx
index 064184e9f31..7eaf215b576 100644
--- a/apps/wallet/src/ui/app/pages/home/tokens/TokensDetails.tsx
+++ b/apps/wallet/src/ui/app/pages/home/tokens/TokensDetails.tsx
@@ -5,7 +5,7 @@
import { ExplorerLinkType, Loading, UnlockAccountButton } from '_components';
import { useAppSelector, useCoinsReFetchingConfig } from '_hooks';
import { useActiveAccount } from '_src/ui/app/hooks/useActiveAccount';
-import FaucetRequestButton from '_src/ui/app/shared/faucet/FaucetRequestButton';
+import { FaucetRequestButton } from '_src/ui/app/shared/faucet/FaucetRequestButton';
import { useFeature } from '@growthbook/growthbook-react';
import { toast } from 'react-hot-toast';
import {
@@ -32,7 +32,7 @@ import { formatAddress, IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';
import { useQuery } from '@tanstack/react-query';
import { useEffect, useState } from 'react';
import { ArrowBottomLeft, Info, Send } from '@iota/ui-icons';
-import Interstitial, { type InterstitialConfig } from '../interstitial';
+import { Interstitial, type InterstitialConfig } from '../interstitial';
import { CoinBalance } from './coin-balance';
import { TokenStakingOverview } from './TokenStakingOverview';
import { useNavigate } from 'react-router-dom';
@@ -44,7 +44,7 @@ interface TokenDetailsProps {
coinType?: string;
}
-function TokenDetails({ coinType }: TokenDetailsProps) {
+export function TokenDetails({ coinType }: TokenDetailsProps) {
const [dialogReceiveOpen, setDialogReceiveOpen] = useState(false);
const navigate = useNavigate();
const [interstitialDismissed, setInterstitialDismissed] = useState(false);
@@ -234,5 +234,3 @@ function TokenDetails({ coinType }: TokenDetailsProps) {
>
);
}
-
-export default TokenDetails;
diff --git a/apps/wallet/src/ui/app/pages/home/tokens/TokensStackIcon.tsx b/apps/wallet/src/ui/app/pages/home/tokens/TokensStackIcon.tsx
index 836b8fd3cbe..e140d51c64c 100644
--- a/apps/wallet/src/ui/app/pages/home/tokens/TokensStackIcon.tsx
+++ b/apps/wallet/src/ui/app/pages/home/tokens/TokensStackIcon.tsx
@@ -37,4 +37,3 @@ export const SvgIotaTokensStack = (props: SVGProps) => (
);
-export default SvgIotaTokensStack;
diff --git a/apps/wallet/src/ui/app/pages/home/tokens/icon-link/index.tsx b/apps/wallet/src/ui/app/pages/home/tokens/icon-link/index.tsx
index 2b3d21fca68..e2ea9b847e6 100644
--- a/apps/wallet/src/ui/app/pages/home/tokens/icon-link/index.tsx
+++ b/apps/wallet/src/ui/app/pages/home/tokens/icon-link/index.tsx
@@ -15,7 +15,7 @@ export interface IconLinkProps {
text: string;
}
-function IconLink({ to, icon, disabled = false, text }: IconLinkProps) {
+function IconLinkComponent({ to, icon, disabled = false, text }: IconLinkProps) {
return (
} />
@@ -15,5 +14,3 @@ function TokensPage() {
);
}
-
-export default TokensPage;
diff --git a/apps/wallet/src/ui/app/pages/home/transactions/index.tsx b/apps/wallet/src/ui/app/pages/home/transactions/index.tsx
index 409d1db7824..133f40d117a 100644
--- a/apps/wallet/src/ui/app/pages/home/transactions/index.tsx
+++ b/apps/wallet/src/ui/app/pages/home/transactions/index.tsx
@@ -8,7 +8,7 @@ import { Navigate, useParams } from 'react-router-dom';
import { CompletedTransactions } from './CompletedTransactions';
import { PageTemplate } from '_src/ui/app/components';
-function TransactionBlocksPage() {
+export function TransactionBlocksPage() {
const activeAccount = useActiveAccount();
const { status } = useParams();
const isPendingTransactions = status === 'pending';
@@ -26,5 +26,3 @@ function TransactionBlocksPage() {
);
}
-
-export default TransactionBlocksPage;
diff --git a/apps/wallet/src/ui/app/pages/home/transfer-coin/CoinSelector.tsx b/apps/wallet/src/ui/app/pages/home/transfer-coin/CoinSelector.tsx
index d94b31d6634..88d0be48ec8 100644
--- a/apps/wallet/src/ui/app/pages/home/transfer-coin/CoinSelector.tsx
+++ b/apps/wallet/src/ui/app/pages/home/transfer-coin/CoinSelector.tsx
@@ -7,7 +7,7 @@ import { useUnlockedGuard } from '_src/ui/app/hooks/useUnlockedGuard';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';
import { useNavigate, useSearchParams } from 'react-router-dom';
-function CoinsSelectorPage() {
+export function CoinsSelectorPage() {
const [searchParams] = useSearchParams();
const coinType = searchParams.get('type') || IOTA_TYPE_ARG;
const navigate = useNavigate();
@@ -32,5 +32,3 @@ function CoinsSelectorPage() {
);
}
-
-export default CoinsSelectorPage;
diff --git a/apps/wallet/src/ui/app/pages/home/transfer-coin/index.tsx b/apps/wallet/src/ui/app/pages/home/transfer-coin/index.tsx
index f4e3a2555c1..8eda834f54f 100644
--- a/apps/wallet/src/ui/app/pages/home/transfer-coin/index.tsx
+++ b/apps/wallet/src/ui/app/pages/home/transfer-coin/index.tsx
@@ -29,7 +29,7 @@ import { Loader } from '@iota/ui-icons';
import { useIotaClientQuery } from '@iota/dapp-kit';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';
-function TransferCoinPage() {
+export function TransferCoinPage() {
const [searchParams] = useSearchParams();
const selectedCoinType = searchParams.get('type');
const [showTransactionPreview, setShowTransactionPreview] = useState(false);
@@ -206,5 +206,3 @@ function TransferCoinPage() {
);
}
-
-export default TransferCoinPage;
diff --git a/apps/wallet/src/ui/app/pages/site-connect/index.tsx b/apps/wallet/src/ui/app/pages/site-connect/index.tsx
index 74238e2ab93..fa8738150af 100644
--- a/apps/wallet/src/ui/app/pages/site-connect/index.tsx
+++ b/apps/wallet/src/ui/app/pages/site-connect/index.tsx
@@ -22,7 +22,7 @@ import { PageMainLayoutTitle } from '../../shared/page-main-layout/PageMainLayou
import { InfoBox, InfoBoxStyle, InfoBoxType } from '@iota/apps-ui-kit';
import { Warning, Info } from '@iota/ui-icons';
-function SiteConnectPage() {
+export function SiteConnectPage() {
const { requestID } = useParams();
const permissionsInitialized = useAppSelector(({ permissions }) => permissions.initialized);
const loading = !permissionsInitialized;
@@ -177,5 +177,3 @@ function SiteConnectPage() {
);
}
-
-export default SiteConnectPage;
diff --git a/apps/wallet/src/ui/app/shared/dapp-status/index.tsx b/apps/wallet/src/ui/app/shared/dapp-status/index.tsx
index 42cb18e8598..6a21bfc6e22 100644
--- a/apps/wallet/src/ui/app/shared/dapp-status/index.tsx
+++ b/apps/wallet/src/ui/app/shared/dapp-status/index.tsx
@@ -15,7 +15,7 @@ import { appDisconnect } from './actions';
import { Link } from '@iota/ui-icons';
import { Button, ButtonSize, ButtonType } from '@iota/apps-ui-kit';
-function DappStatus() {
+function DappStatusComponent() {
const dispatch = useAppDispatch();
const activeOriginUrl = useAppSelector(({ app }) => app.activeOrigin);
const activeOrigin = useMemo(() => {
@@ -147,4 +147,4 @@ function DappStatus() {
);
}
-export default memo(DappStatus);
+export const DappStatus = memo(DappStatusComponent);
diff --git a/apps/wallet/src/ui/app/shared/faucet/FaucetMessageInfo.tsx b/apps/wallet/src/ui/app/shared/faucet/FaucetMessageInfo.tsx
index ffdd417b5b3..460f56b5340 100644
--- a/apps/wallet/src/ui/app/shared/faucet/FaucetMessageInfo.tsx
+++ b/apps/wallet/src/ui/app/shared/faucet/FaucetMessageInfo.tsx
@@ -11,7 +11,7 @@ export interface FaucetMessageInfoProps {
totalReceived?: number | null;
}
-function FaucetMessageInfo({
+export function FaucetMessageInfo({
error = null,
loading = false,
totalReceived = null,
@@ -30,5 +30,3 @@ function FaucetMessageInfo({
<>{`${totalReceived ? `${coinsReceivedFormatted} ` : ''}${coinsReceivedSymbol} requested`}>
);
}
-
-export default FaucetMessageInfo;
diff --git a/apps/wallet/src/ui/app/shared/faucet/FaucetRequestButton.tsx b/apps/wallet/src/ui/app/shared/faucet/FaucetRequestButton.tsx
index fd8326069b2..0cd90bf29c0 100644
--- a/apps/wallet/src/ui/app/shared/faucet/FaucetRequestButton.tsx
+++ b/apps/wallet/src/ui/app/shared/faucet/FaucetRequestButton.tsx
@@ -10,9 +10,9 @@ import { toast } from 'react-hot-toast';
import { useFaucetMutation } from './useFaucetMutation';
import { useFaucetRateLimiter } from './useFaucetRateLimiter';
import { Button, ButtonType } from '@iota/apps-ui-kit';
-import FaucetMessageInfo from './FaucetMessageInfo';
+import { FaucetMessageInfo } from './FaucetMessageInfo';
-function FaucetRequestButton(): JSX.Element | null {
+export function FaucetRequestButton(): JSX.Element | null {
const network = useAppSelector(({ app }) => app.network);
const customRpc = useAppSelector(({ app }) => app.customRpc);
const networkConfig = customRpc ? getCustomNetwork(customRpc) : getNetwork(network);
@@ -50,5 +50,3 @@ function FaucetRequestButton(): JSX.Element | null {
/>
) : null;
}
-
-export default FaucetRequestButton;
diff --git a/apps/wallet/src/ui/app/shared/page-main-layout/PageMainLayout.tsx b/apps/wallet/src/ui/app/shared/page-main-layout/PageMainLayout.tsx
index 9896be915fb..28be9deb7e8 100644
--- a/apps/wallet/src/ui/app/shared/page-main-layout/PageMainLayout.tsx
+++ b/apps/wallet/src/ui/app/shared/page-main-layout/PageMainLayout.tsx
@@ -7,7 +7,7 @@ import cn from 'clsx';
import { createContext, type ReactNode, useState } from 'react';
import { useAppSelector } from '../../hooks';
import { AppType } from '../../redux/slices/app/AppType';
-import DappStatus from '../dapp-status';
+import { DappStatus } from '../dapp-status';
import { Header } from '../header/Header';
import { Toaster } from '../toaster';
import { IotaLogoMark, Ledger } from '@iota/ui-icons';
diff --git a/apps/wallet/src/ui/app/staking/home/index.tsx b/apps/wallet/src/ui/app/staking/home/index.tsx
index 1dd9407de84..69c09b97783 100644
--- a/apps/wallet/src/ui/app/staking/home/index.tsx
+++ b/apps/wallet/src/ui/app/staking/home/index.tsx
@@ -6,7 +6,7 @@ import { Route, Routes } from 'react-router-dom';
import { useUnlockedGuard } from '../../hooks/useUnlockedGuard';
import { DelegationDetail } from '../delegation-detail';
-import StakePage from '../stake';
+import { StakePage } from '../stake';
import { Validators } from '../validators';
export function StakingPage() {
diff --git a/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx b/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx
index 093991e6f33..fafa3a91a04 100644
--- a/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx
+++ b/apps/wallet/src/ui/app/staking/stake/StakeForm.tsx
@@ -28,7 +28,12 @@ export interface StakeFromProps {
epoch?: string | number;
}
-function StakeForm({ validatorAddress, coinBalance, coinType, epoch }: StakeFromProps) {
+export function StakeFormComponent({
+ validatorAddress,
+ coinBalance,
+ coinType,
+ epoch,
+}: StakeFromProps) {
const { values, setFieldValue } = useFormikContext();
const activeAddress = useActiveAddress();
const { data: metadata } = useCoinMetadata(coinType);
@@ -117,4 +122,4 @@ function StakeForm({ validatorAddress, coinBalance, coinType, epoch }: StakeFrom
);
}
-export default memo(StakeForm);
+export const StakeForm = memo(StakeFormComponent);
diff --git a/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx b/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx
index a4f94a5de47..b3890480c5b 100644
--- a/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx
+++ b/apps/wallet/src/ui/app/staking/stake/StakingCard.tsx
@@ -32,7 +32,7 @@ import { getSignerOperationErrorMessage } from '../../helpers/errorMessages';
import { useActiveAccount } from '../../hooks/useActiveAccount';
import { useSigner } from '../../hooks/useSigner';
import { getDelegationDataByStakeId } from '../getDelegationByStakeId';
-import StakeForm from './StakeForm';
+import { StakeForm } from './StakeForm';
import { UnStakeForm } from './UnstakeForm';
import { ValidatorFormDetail } from './ValidatorFormDetail';
import {
@@ -52,7 +52,7 @@ const INITIAL_VALUES = {
export type FormValues = typeof INITIAL_VALUES;
-function StakingCard() {
+export function StakingCard() {
const coinType = IOTA_TYPE_ARG;
const activeAccount = useActiveAccount();
const accountAddress = activeAccount?.address;
@@ -347,5 +347,3 @@ function StakingCard() {
);
}
-
-export default StakingCard;
diff --git a/apps/wallet/src/ui/app/staking/stake/index.tsx b/apps/wallet/src/ui/app/staking/stake/index.tsx
index 4add0478403..60770068945 100644
--- a/apps/wallet/src/ui/app/staking/stake/index.tsx
+++ b/apps/wallet/src/ui/app/staking/stake/index.tsx
@@ -6,9 +6,9 @@ import { Overlay } from '_components';
import { useNavigate, useSearchParams } from 'react-router-dom';
import { SelectValidatorCard } from '../validators/SelectValidatorCard';
-import StakingCard from './StakingCard';
+import { StakingCard } from './StakingCard';
-function StakePage() {
+export function StakePage() {
const [searchParams] = useSearchParams();
const validatorAddress = searchParams.get('address');
const unstake = searchParams.get('unstake') === 'true';
@@ -27,5 +27,3 @@ function StakePage() {
);
}
-
-export default StakePage;
diff --git a/apps/wallet/src/ui/index.tsx b/apps/wallet/src/ui/index.tsx
index f3ef312b1c3..90c43f75e57 100644
--- a/apps/wallet/src/ui/index.tsx
+++ b/apps/wallet/src/ui/index.tsx
@@ -22,8 +22,7 @@ import { Fragment, StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { HashRouter } from 'react-router-dom';
-
-import App from './app';
+import { App } from './app';
import { walletApiProvider } from './app/ApiProvider';
import { AccountsFormProvider } from './app/components/accounts/AccountsFormContext';
import { UnlockAccountProvider } from './app/components/accounts/UnlockAccountContext';