Skip to content

Commit 75729c0

Browse files
committed
chore(suite): reorganize coin control file structure to resemble component structure
1 parent c2e8824 commit 75729c0

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

packages/suite/src/views/wallet/send/Options/BitcoinOptions/CoinControl/CoinControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { selectCurrentTargetAnonymity } from 'src/reducers/wallet/coinjoinReduce
1818
import { selectLabelingDataForSelectedAccount } from 'src/reducers/suite/metadataReducer';
1919
import { filterAndCategorizeUtxos } from 'src/utils/wallet/filterAndCategorizeUtxosUtils';
2020

21-
import { UtxoSelectionList } from './UtxoSelectionList';
21+
import { UtxoSelectionList } from './UtxoSelectionList/UtxoSelectionList';
2222
import { UtxoSearch } from './UtxoSearch';
2323

2424
const Header = styled.header`
File renamed without changes.
File renamed without changes.

packages/suite/src/views/wallet/send/Options/BitcoinOptions/CoinControl/UtxoSelectionList.tsx renamed to packages/suite/src/views/wallet/send/Options/BitcoinOptions/CoinControl/UtxoSelectionList/UtxoSelectionList.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { ReactNode } from 'react';
33
import styled from 'styled-components';
44
import { transparentize } from 'polished';
55

6-
import { selectAccountTransactionsWithNulls } from '@suite-common/wallet-core';
6+
import { selectAccountTransactions } from '@suite-common/wallet-core';
77
import { Icon, variables, IconName } from '@trezor/components';
88
import type { AccountUtxo } from '@trezor/connect';
99
import { CSSColor } from '@trezor/theme';
1010

1111
import { useSelector } from 'src/hooks/suite';
1212
import { useSendFormContext } from 'src/hooks/wallet';
1313

14-
import { UtxoSelection } from './UtxoSelection';
14+
import { UtxoSelection } from './UtxoSelection/UtxoSelection';
1515

1616
const Wrapper = styled.section`
1717
border-bottom: 1px solid ${({ theme }) => theme.legacy.STROKE_GREY};
@@ -65,9 +65,7 @@ export const UtxoSelectionList = ({
6565
}: UtxoSelectionListProps) => {
6666
const { account } = useSendFormContext();
6767

68-
const accountTransactions = useSelector(state =>
69-
selectAccountTransactionsWithNulls(state, account.key),
70-
);
68+
const accountTransactions = useSelector(state => selectAccountTransactions(state, account.key));
7169

7270
return (
7371
<Wrapper>
@@ -89,7 +87,7 @@ export const UtxoSelectionList = ({
8987
<UtxoSelection
9088
key={`${utxo.txid}-${utxo.vout}`}
9189
transaction={accountTransactions.find(
92-
transaction => transaction?.txid === utxo.txid,
90+
transaction => transaction.txid === utxo.txid,
9391
)}
9492
utxo={utxo}
9593
/>

0 commit comments

Comments
 (0)