Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP [REF] utxo selection and multisend flow refactor #1108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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