diff --git a/src/renderer/widgets/CreateWallet/ui/MultisigWallet/components/AccountBalance.tsx b/src/renderer/widgets/CreateWallet/ui/MultisigWallet/components/AccountBalance.tsx deleted file mode 100644 index 4dfadd2f7..000000000 --- a/src/renderer/widgets/CreateWallet/ui/MultisigWallet/components/AccountBalance.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { useUnit } from 'effector-react'; -import { useMemo } from 'react'; - -import { type Chain } from '@/shared/core'; -import { cnTw, formatAsset, nullable, totalAmountBN } from '@/shared/lib/utils'; -import { FootnoteText } from '@/shared/ui'; -import { balanceModel } from '@/entities/balance'; - -type Props = { - accountId: string; - chain: Chain; -}; - -export const AccountBalance = ({ accountId, chain }: Props) => { - const balances = useUnit(balanceModel.$balances); - const asset = chain.assets.at(0); - const balance = useMemo(() => { - if (nullable(asset)) return null; - - return ( - balances.find( - (x) => x.accountId === accountId && x.chainId == chain.chainId && x.assetId === asset.assetId.toString(), - ) ?? null - ); - }, [accountId, chain, asset, balances]); - - if (!balance || !asset) { - return null; - } - - const totalAmount = totalAmountBN(balance); - - return ( - - {formatAsset(totalAmount, asset)} - - ); -}; diff --git a/src/renderer/widgets/CreateWallet/ui/MultisigWallet/components/Signatory.tsx b/src/renderer/widgets/CreateWallet/ui/MultisigWallet/components/Signatory.tsx index 93cf2b321..2123904d0 100644 --- a/src/renderer/widgets/CreateWallet/ui/MultisigWallet/components/Signatory.tsx +++ b/src/renderer/widgets/CreateWallet/ui/MultisigWallet/components/Signatory.tsx @@ -14,7 +14,6 @@ import { import { CaptionText, Combobox, IconButton, Identicon, Input } from '@/shared/ui'; import { type ComboboxOption } from '@/shared/ui/types'; import { Address } from '@/shared/ui-entities'; -import { Box } from '@/shared/ui-kit'; import { contactModel } from '@/entities/contact'; import { networkUtils } from '@/entities/network'; import { WalletIcon, accountUtils, walletModel, walletUtils } from '@/entities/wallet'; @@ -24,8 +23,6 @@ import { GroupLabels } from '@/features/wallets/WalletSelect/ui/WalletGroup'; import { formModel } from '@/widgets/CreateWallet/model/form-model'; import { signatoryModel } from '../../../model/signatory-model'; -import { AccountBalance } from './AccountBalance'; - interface Props { signatoryName: string; signatoryAddress: string; @@ -109,12 +106,7 @@ export const Signatory = ({ return { value: address, - element: ( - -
- - - ), + element:
, id: account.walletId.toString(), }; }),