diff --git a/apps/wallet-mobile/.storybook/storybook.requires.js b/apps/wallet-mobile/.storybook/storybook.requires.js index 67e6a4e624..70da16c898 100644 --- a/apps/wallet-mobile/.storybook/storybook.requires.js +++ b/apps/wallet-mobile/.storybook/storybook.requires.js @@ -139,6 +139,7 @@ const getStories = () => { "./src/features/Exchange/useCases/ShowExchangeResultOrderScreen/ContentResult/ContentResult.stories.tsx": require("../src/features/Exchange/useCases/ShowExchangeResultOrderScreen/ContentResult/ContentResult.stories.tsx"), "./src/features/Exchange/useCases/ShowExchangeResultOrderScreen/ShowExchangeResultOrderScreen.stories.tsx": require("../src/features/Exchange/useCases/ShowExchangeResultOrderScreen/ShowExchangeResultOrderScreen.stories.tsx"), "./src/features/Initialization/AnalyticsChangedScreen/AnalyticsChangedScreen.stories.tsx": require("../src/features/Initialization/AnalyticsChangedScreen/AnalyticsChangedScreen.stories.tsx"), + "./src/features/Initialization/ChooseBiometricLogin/ChooseBiometricLoginScreen.stories.tsx": require("../src/features/Initialization/ChooseBiometricLogin/ChooseBiometricLoginScreen.stories.tsx"), "./src/features/Initialization/InitialScreen/InitialScreen.stories.tsx": require("../src/features/Initialization/InitialScreen/InitialScreen.stories.tsx"), "./src/features/Initialization/LanguagePickerScreen/LanguagePickerScreen.stories.tsx": require("../src/features/Initialization/LanguagePickerScreen/LanguagePickerScreen.stories.tsx"), "./src/features/Initialization/TermsOfServiceChangedScreen/TermsOfServiceChangedScreen.stories.tsx": require("../src/features/Initialization/TermsOfServiceChangedScreen/TermsOfServiceChangedScreen.stories.tsx"), @@ -210,7 +211,6 @@ const getStories = () => { "./src/features/SetupWallet/legacy/SaveReadOnlyWallet/SaveReadOnlyWalletScreen.stories.tsx": require("../src/features/SetupWallet/legacy/SaveReadOnlyWallet/SaveReadOnlyWalletScreen.stories.tsx"), "./src/features/SetupWallet/legacy/WalletAddress/WalletAddress.stories.tsx": require("../src/features/SetupWallet/legacy/WalletAddress/WalletAddress.stories.tsx"), "./src/features/SetupWallet/legacy/WalletNameForm/WalletNameForm.stories.tsx": require("../src/features/SetupWallet/legacy/WalletNameForm/WalletNameForm.stories.tsx"), - "./src/features/SetupWallet/useCases/ChooseBiometricLogin/ChooseBiometricLoginScreen.stories.tsx": require("../src/features/SetupWallet/useCases/ChooseBiometricLogin/ChooseBiometricLoginScreen.stories.tsx"), "./src/features/SetupWallet/useCases/ChooseNetwork/ChooseNetworkScreen.stories.tsx": require("../src/features/SetupWallet/useCases/ChooseNetwork/ChooseNetworkScreen.stories.tsx"), "./src/features/SetupWallet/useCases/ChooseSetupType/ChooseSetupTypeScreen.stories.tsx": require("../src/features/SetupWallet/useCases/ChooseSetupType/ChooseSetupTypeScreen.stories.tsx"), "./src/features/SetupWallet/useCases/CreateWallet/AboutRecoveryPhraseScreen.stories.tsx": require("../src/features/SetupWallet/useCases/CreateWallet/AboutRecoveryPhraseScreen.stories.tsx"), @@ -292,8 +292,6 @@ const getStories = () => { "./src/legacy/TxHistory/TxDetails/TxDetails.stories.tsx": require("../src/legacy/TxHistory/TxDetails/TxDetails.stories.tsx"), "./src/legacy/TxHistory/TxHistory.stories.tsx": require("../src/legacy/TxHistory/TxHistory.stories.tsx"), "./src/legacy/TxHistory/TxHistoryList/ActionsBanner/ActionsBanner.stories.tsx": require("../src/legacy/TxHistory/TxHistoryList/ActionsBanner/ActionsBanner.stories.tsx"), - "./src/Staking/FailedTx/FailedTxScreen.stories.tsx": require("../src/Staking/FailedTx/FailedTxScreen.stories.tsx"), - "./src/Staking/PoolTransition/PoolTransitionModal.stories.tsx": require("../src/Staking/PoolTransition/PoolTransitionModal.stories.tsx"), }; }; diff --git a/apps/wallet-mobile/src/Staking/FailedTx/FailedTxImage.tsx b/apps/wallet-mobile/src/Staking/FailedTx/FailedTxImage.tsx deleted file mode 100644 index b63d5b8dd2..0000000000 --- a/apps/wallet-mobile/src/Staking/FailedTx/FailedTxImage.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import * as React from 'react' -import Svg, {Defs, LinearGradient, Path, Stop, SvgProps} from 'react-native-svg' - -export const FailedTxImage = (props: SvgProps) => { - return ( - - - - - - - - - - - - - - - - - - - - - - - - ) -} diff --git a/apps/wallet-mobile/src/Staking/FailedTx/FailedTxScreen.stories.tsx b/apps/wallet-mobile/src/Staking/FailedTx/FailedTxScreen.stories.tsx deleted file mode 100644 index 21536f6847..0000000000 --- a/apps/wallet-mobile/src/Staking/FailedTx/FailedTxScreen.stories.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import {storiesOf} from '@storybook/react-native' -import React from 'react' - -import {FailedTxScreen} from './FailedTxScreen' - -storiesOf('Staking/Failed Tx Screen', module).add('initial', () => { - return -}) diff --git a/apps/wallet-mobile/src/Staking/FailedTx/FailedTxScreen.tsx b/apps/wallet-mobile/src/Staking/FailedTx/FailedTxScreen.tsx deleted file mode 100644 index 5271bf4187..0000000000 --- a/apps/wallet-mobile/src/Staking/FailedTx/FailedTxScreen.tsx +++ /dev/null @@ -1,121 +0,0 @@ -import {useNavigation} from '@react-navigation/native' -import {useTheme} from '@yoroi/theme' -import React from 'react' -import {defineMessages, useIntl} from 'react-intl' -import {StyleSheet, View} from 'react-native' - -import {Button, Spacer, Text} from '../../components' -import {Space} from '../../components/Space/Space' -import {FailedTxImage} from './FailedTxImage' - -export const FailedTxScreen = () => { - const strings = useStrings() - const styles = useStyles() - const navigateTo = useNavigateTo() - - return ( - - - - - - {strings.notEnoughFunds} - - {strings.noFundsToProcess} - - - -