diff --git a/src/app/common/use-wallet-type.ts b/src/app/common/use-wallet-type.ts
index 42aca78fec..30db07c838 100644
--- a/src/app/common/use-wallet-type.ts
+++ b/src/app/common/use-wallet-type.ts
@@ -3,7 +3,7 @@ import { useMemo } from 'react';
import { useHasLedgerKeys } from '@app/store/ledger/ledger.selectors';
import { useCurrentKeyDetails } from '@app/store/software-keys/software-key.selectors';
-export enum WalletType {
+enum WalletType {
Ledger = 'ledger',
Software = 'software',
}
diff --git a/src/app/components/account/account-list-item-layout.tsx b/src/app/components/account/account-list-item-layout.tsx
index 54ba88ed5d..915a707b37 100644
--- a/src/app/components/account/account-list-item-layout.tsx
+++ b/src/app/components/account/account-list-item-layout.tsx
@@ -1,9 +1,6 @@
-import { ReactNode } from 'react';
-
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { Box, Flex, HStack, Stack, StackProps, styled } from 'leather-styles/jsx';
-import { WalletType, useWalletType } from '@app/common/use-wallet-type';
import { CheckmarkIcon } from '@app/ui/components/icons/checkmark-icon';
import { Spinner } from '@app/ui/components/spinner';
import { truncateMiddle } from '@app/ui/utils/truncate-middle';
@@ -23,11 +20,6 @@ interface AccountListItemLayoutProps extends StackProps {
onSelectAccount(): void;
}
-function AddressWrapper({ walletType, children }: { walletType: WalletType; children: ReactNode }) {
- if (walletType == WalletType.Ledger) return <>{children}>;
- return {children};
-}
-
export function AccountListItemLayout(props: AccountListItemLayoutProps) {
const {
index,
@@ -40,7 +32,6 @@ export function AccountListItemLayout(props: AccountListItemLayoutProps) {
children = null,
...rest
} = props;
- const { walletType } = useWalletType();
return (
@@ -73,7 +64,7 @@ export function AccountListItemLayout(props: AccountListItemLayoutProps) {
)}
-
+
{account => (
@@ -89,7 +80,7 @@ export function AccountListItemLayout(props: AccountListItemLayoutProps) {
)}
-
+