chore(wallet-types): Remove useless type reexport

This commit is contained in:
Jiri Zbytovsky
2024-09-05 17:25:32 +02:00
committed by Jiri Zbytovsky
parent f3b10d440b
commit 1d04f047fd
9 changed files with 10 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ import { BadgeSize, Row, TOOLTIP_DELAY_LONG, TruncateWithTooltip } from '@trezor
import { useCallback } from 'react';
import { useTranslation } from '../../hooks/suite';
import { spacings } from '@trezor/theme';
import { AccountSymbol, AccountType } from '@suite-common/wallet-types';
import { AccountType, NetworkSymbol } from '@suite-common/wallet-config';
import { AccountTypeBadge } from './AccountTypeBadge';
const TabularNums = styled.span`
@@ -16,7 +16,7 @@ const TabularNums = styled.span`
export interface AccountLabelProps {
accountLabel?: string;
accountType: AccountType;
symbol: AccountSymbol;
symbol: NetworkSymbol;
index?: number;
showAccountTypeBadge?: boolean;
accountTypeBadgeSize?: BadgeSize;
@@ -32,7 +32,7 @@ export const useAccountLabel = () => {
index = 0,
}: {
accountType: AccountType;
symbol: AccountSymbol;
symbol: NetworkSymbol;
index?: number;
}) => {
if (accountType === 'coinjoin') {

View File

@@ -1,4 +1,5 @@
import { AccountType, UppercaseAccountType } from '@suite-common/wallet-types';
import { UppercaseAccountType } from '@suite-common/wallet-types';
import { AccountType } from '@suite-common/wallet-config';
import { toUppercaseType } from '@suite-common/suite-utils';
import { Badge, BadgeSize } from '@trezor/components';
import { Translation } from './Translation';

View File

@@ -1,7 +1,7 @@
import { ReactNode } from 'react';
import { DropdownMenuItemProps } from '@trezor/components';
import { MetadataAddPayload } from 'src/types/suite/metadata';
import { AccountType } from '@suite-common/wallet-types';
import { AccountType } from '@suite-common/wallet-config';
export interface Props {
accountType?: AccountType;

View File

@@ -1,5 +1,4 @@
import { NetworkType } from '@suite-common/wallet-config';
import { AccountType } from '@suite-common/wallet-types';
import { AccountType, NetworkType } from '@suite-common/wallet-config';
export const ACCOUNTS_MODULE_PREFIX = '@common/wallet-core/accounts';

View File

@@ -1,8 +1,4 @@
import {
AccountType as NetworkAccountType,
BackendType,
NetworkSymbol,
} from '@suite-common/wallet-config';
import { AccountType, BackendType, NetworkSymbol } from '@suite-common/wallet-config';
import { AccountEntityKeys } from '@suite-common/metadata-types';
import { AccountInfo, PROTO, TokenInfo } from '@trezor/connect';
import {
@@ -91,7 +87,7 @@ export type Account = {
unlockPath?: PROTO.UnlockPath; // parameter used to unlock SLIP-25/coinjoin keychain
descriptor: string;
descriptorChecksum?: string;
accountType: NetworkAccountType;
accountType: AccountType;
symbol: NetworkSymbol;
empty: boolean;
visible: boolean;
@@ -113,9 +109,6 @@ export type Account = {
} & AccountBackendSpecific &
AccountNetworkSpecific;
export type AccountType = Account['accountType'];
export type AccountSymbol = Account['symbol'];
export type UppercaseAccountType = Uppercase<AccountType>;
export type WalletParams =

View File

@@ -13,7 +13,6 @@
"dependencies": {
"@mobily/ts-belt": "^3.13.1",
"@suite-common/wallet-config": "workspace:*",
"@suite-common/wallet-types": "workspace:*",
"@suite-common/wallet-utils": "workspace:*",
"expo-constants": "16.0.2"
}

View File

@@ -2,12 +2,12 @@ import { A } from '@mobily/ts-belt';
import { isTestnet } from '@suite-common/wallet-utils';
import {
AccountType,
NetworkCompatible,
NetworkSymbol,
getMainnetsCompatible,
getTestnetsCompatible,
} from '@suite-common/wallet-config';
import { AccountType } from '@suite-common/wallet-types';
export const orderedAccountTypes: AccountType[] = [
'normal',

View File

@@ -5,9 +5,6 @@
{
"path": "../../suite-common/wallet-config"
},
{
"path": "../../suite-common/wallet-types"
},
{
"path": "../../suite-common/wallet-utils"
}

View File

@@ -9717,7 +9717,6 @@ __metadata:
dependencies:
"@mobily/ts-belt": "npm:^3.13.1"
"@suite-common/wallet-config": "workspace:*"
"@suite-common/wallet-types": "workspace:*"
"@suite-common/wallet-utils": "workspace:*"
expo-constants: "npm:16.0.2"
languageName: unknown