Skip to content

Commit

Permalink
[REF] utxo selection and multisend flow refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbazan7 committed Apr 1, 2024
1 parent a37c243 commit c2df85e
Show file tree
Hide file tree
Showing 7 changed files with 620 additions and 1,040 deletions.
4 changes: 2 additions & 2 deletions src/components/checkbox/Checkbox.spec.tsx
@@ -1,15 +1,15 @@
import React from 'react';
import Checkbox from './Checkbox';
import {fireEvent, render} from '@test/render';
import {SlateDark, Action} from '../../styles/colors';
import {Action} from '../../styles/colors';

it('renders correctly', async () => {
const mockFn = jest.fn();
const {getByTestId, rerender} = render(
<Checkbox onPress={mockFn} checked={false} />,
);
const checkbox = await getByTestId('checkbox');
expect(getByTestId('checkboxBorder')).toHaveStyle({borderColor: SlateDark});
expect(getByTestId('checkboxBorder')).toHaveStyle({borderColor: '#E5E5F2'});
fireEvent(checkbox, 'press');
expect(mockFn).toHaveBeenCalled();

Expand Down
7 changes: 0 additions & 7 deletions src/navigation/wallet/WalletGroup.tsx
Expand Up @@ -68,7 +68,6 @@ import PayProConfirmTwoFactor, {
PayProConfirmTwoFactorParamList,
} from './screens/send/confirm/PayProConfirmTwoFactor';
import {useTranslation} from 'react-i18next';
import SendToOptions, {SendToOptionsParamList} from './screens/SendToOptions';
import SelectInputs, {SelectInputsParamList} from './screens/SelectInputs';
import CurrencyTokenSelectionScreen, {
CurrencyTokenSelectionScreenParamList,
Expand Down Expand Up @@ -155,7 +154,6 @@ export type WalletGroupParamList = {
AllAddresses: AllAddressesParamList;
PriceCharts: PriceChartsParamList;
ClearEncryptPassword: ClearEncryptPasswordParamList;
SendToOptions: SendToOptionsParamList;
SelectInputs: SelectInputsParamList;
EnterBuyerProvidedEmail: {data: string};
ExportTransactionHistory: {wallet: WalletModel};
Expand Down Expand Up @@ -208,7 +206,6 @@ export enum WalletScreens {
ALL_ADDRESSES = 'AllAddresses',
PRICE_CHARTS = 'PriceCharts',
CLEAR_ENCRYPT_PASSWORD = 'ClearEncryptPassword',
SEND_TO_OPTIONS = 'SendToOptions',
SELECT_INPUTS = 'SelectInputs',
ENTER_BUYER_PROVIDED_EMAIL = 'EnterBuyerProvidedEmail',
CLEAR_TRANSACTION_HISTORY_CACHE = 'ClearTransactionHistoryCache',
Expand Down Expand Up @@ -430,10 +427,6 @@ const WalletGroup: React.FC<WalletProps> = ({Wallet}) => {
name={WalletScreens.CLEAR_ENCRYPT_PASSWORD}
component={ClearEncryptPassword}
/>
<Wallet.Screen
name={WalletScreens.SEND_TO_OPTIONS}
component={SendToOptions}
/>
<Wallet.Screen
name={WalletScreens.SELECT_INPUTS}
component={SelectInputs}
Expand Down

0 comments on commit c2df85e

Please sign in to comment.