Skip to content

Commit

Permalink
chore(suite-native): correct import orders
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Feb 5, 2025
1 parent 2f9fe10 commit bafe76c
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useSelector } from 'react-redux';

import { Account, TokenInfoBranded } from '@suite-common/wallet-types';
import { TokenAmountFormatter, TokenToFiatAmountFormatter } from '@suite-native/formatters';
import { getTokenName, selectAccountTokenSymbol, TokensRootState } from '@suite-native/tokens';
import { CryptoIconWithNetwork } from '@suite-native/icons';
import { TokensRootState, getTokenName, selectAccountTokenSymbol } from '@suite-native/tokens';

import { AccountsListItemBase } from './AccountsListItemBase';

Expand Down
6 changes: 3 additions & 3 deletions suite-native/icons/src/CryptoIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { useMemo } from 'react';

import { Image } from 'expo-image';

import { cryptoIcons, genericTokenIcon, CryptoIconName } from '@suite-common/icons';
import { CryptoIconName, cryptoIcons, genericTokenIcon } from '@suite-common/icons';
import {
getCoingeckoId,
isNetworkSymbol,
NetworkDisplaySymbol,
NetworkSymbol,
getCoingeckoId,
isNetworkSymbol,
} from '@suite-common/wallet-config';
import { getContractAddressForNetworkSymbol } from '@suite-common/wallet-utils';
import { getAssetLogoUrl } from '@trezor/asset-utils';
Expand Down
6 changes: 3 additions & 3 deletions suite-native/icons/src/CryptoIconWithNetwork.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { prepareNativeStyle, useNativeStyles } from '@trezor/styles';
import {
getNetworkDisplaySymbol,
NetworkDisplaySymbol,
NetworkSymbol,
getNetworkDisplaySymbol,
} from '@suite-common/wallet-config';
import { TokenAddress } from '@suite-common/wallet-types';
import { Box } from '@suite-native/atoms';
import { prepareNativeStyle, useNativeStyles } from '@trezor/styles';

import { CryptoIconSize, CryptoIcon, cryptoIconSizes } from './CryptoIcon';
import { CryptoIcon, CryptoIconSize, cryptoIconSizes } from './CryptoIcon';
import { NetworkIcon } from './NetworkIcon';

export interface CryptoIconWithNetworkProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import { render } from '@suite-native/test-utils';
import { TokenAddress } from '@suite-common/wallet-types';
import { render } from '@suite-native/test-utils';

import { CryptoIconWithNetwork } from '../CryptoIconWithNetwork';

Expand Down
1 change: 1 addition & 0 deletions suite-native/module-accounts-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@suite-native/tokens": "workspace:*",
"@suite-native/transactions": "workspace:*",
"@trezor/styles": "workspace:*",
"@trezor/utils": "workspace:*",
"jotai": "1.9.1",
"react": "18.2.0",
"react-native": "0.76.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useSelector } from 'react-redux';

import { useNavigation, RouteProp, useRoute } from '@react-navigation/native';
import { RouteProp, useNavigation, useRoute } from '@react-navigation/native';

import { AccountsRootState, selectAccountNetworkSymbol } from '@suite-common/wallet-core';
import { HStack, IconButton, Text } from '@suite-native/atoms';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ import { useSelector } from 'react-redux';

import { RouteProp, useRoute } from '@react-navigation/native';

import { Box, HStack, Text, VStack } from '@suite-native/atoms';
import {
RootStackParamList,
RootStackRoutes,
ScreenHeader,
GoBackIcon,
} from '@suite-native/navigation';
import {
AccountsRootState,
selectAccountLabel,
selectAccountNetworkSymbol,
} from '@suite-common/wallet-core';
import { TokenAddress } from '@suite-common/wallet-types';
import { Box, HStack, Text, VStack } from '@suite-native/atoms';
import { CryptoIconWithNetwork } from '@suite-native/icons';
import { useTranslate } from '@suite-native/intl';
import { selectAccountTokenInfo, TokensRootState } from '@suite-native/tokens';
import { TokenAddress } from '@suite-common/wallet-types';
import {
GoBackIcon,
RootStackParamList,
RootStackRoutes,
ScreenHeader,
} from '@suite-native/navigation';
import { TokensRootState, selectAccountTokenInfo } from '@suite-native/tokens';

type TokenAccountDetailScreenHeaderProps = {
accountKey: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useSelector } from 'react-redux';

import { getNetworkDisplaySymbol } from '@suite-common/wallet-config';
import { AccountsRootState, selectAccountByKey } from '@suite-common/wallet-core';
import { AccountKey, TokenAddress } from '@suite-common/wallet-types';
import { Text } from '@suite-native/atoms';
import { Translation } from '@suite-native/intl';
import { ScreenHeader, GoBackIcon } from '@suite-native/navigation';
import { selectAccountTokenInfo, TokensRootState } from '@suite-native/tokens';
import { getNetworkDisplaySymbol } from '@suite-common/wallet-config';
import { GoBackIcon, ScreenHeader } from '@suite-native/navigation';
import { TokensRootState, selectAccountTokenInfo } from '@suite-native/tokens';

type AccountBalanceScreenHeaderProps = {
accountKey: AccountKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useSelector } from 'react-redux';
import { getNetwork } from '@suite-common/wallet-config';
import { AccountsRootState, selectAccountNetworkSymbol } from '@suite-common/wallet-core';
import { AccountKey, TokenAddress } from '@suite-common/wallet-types';
import { VStack, AlertBox, Text } from '@suite-native/atoms';
import { AlertBox, Text, VStack } from '@suite-native/atoms';
import { CryptoIconWithNetwork } from '@suite-native/icons';
import { Translation } from '@suite-native/intl';
import { TokensRootState, selectAccountTokenSymbol } from '@suite-native/tokens';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Box, RoundedIcon } from '@suite-native/atoms';
import { prepareNativeStyle, useNativeStyles } from '@trezor/styles';
import { TokenAddress, TransactionType } from '@suite-common/wallet-types';
import { CryptoIcon, IconName, IconSize } from '@suite-native/icons';
import { Color } from '@trezor/theme';
import {
getNetworkDisplaySymbol,
NetworkDisplaySymbol,
NetworkSymbol,
getNetworkDisplaySymbol,
} from '@suite-common/wallet-config';
import { TokenAddress, TransactionType } from '@suite-common/wallet-types';
import { Box, RoundedIcon } from '@suite-native/atoms';
import { CryptoIcon, IconName, IconSize } from '@suite-native/icons';
import { prepareNativeStyle, useNativeStyles } from '@trezor/styles';
import { Color } from '@trezor/theme';

import { TransactionIconSpinner } from './TransactionIconSpinner';

Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10612,6 +10612,7 @@ __metadata:
"@suite-native/tokens": "workspace:*"
"@suite-native/transactions": "workspace:*"
"@trezor/styles": "workspace:*"
"@trezor/utils": "workspace:*"
jotai: "npm:1.9.1"
react: "npm:18.2.0"
react-native: "npm:0.76.1"
Expand Down

0 comments on commit bafe76c

Please sign in to comment.