mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
chore(wallet-types): Remove useless type reexport
This commit is contained in:
committed by
Jiri Zbytovsky
parent
f3b10d440b
commit
1d04f047fd
@@ -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') {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -5,9 +5,6 @@
|
||||
{
|
||||
"path": "../../suite-common/wallet-config"
|
||||
},
|
||||
{
|
||||
"path": "../../suite-common/wallet-types"
|
||||
},
|
||||
{
|
||||
"path": "../../suite-common/wallet-utils"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user