diff --git a/apps/wallet-mobile/.storybook/storybook.requires.js b/apps/wallet-mobile/.storybook/storybook.requires.js index ce14bcbce3..4922251289 100644 --- a/apps/wallet-mobile/.storybook/storybook.requires.js +++ b/apps/wallet-mobile/.storybook/storybook.requires.js @@ -134,7 +134,6 @@ const getStories = () => { "./src/features/Exchange/common/ShowBuyBanner/BuyBannerBig.stories.tsx": require("../src/features/Exchange/common/ShowBuyBanner/BuyBannerBig.stories.tsx"), "./src/features/Exchange/common/ShowBuyBanner/BuyBannerSmall.stories.tsx": require("../src/features/Exchange/common/ShowBuyBanner/BuyBannerSmall.stories.tsx"), "./src/features/Exchange/common/ShowBuyBanner/PreprodFaucetBanner.stories.tsx": require("../src/features/Exchange/common/ShowBuyBanner/PreprodFaucetBanner.stories.tsx"), - "./src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.stories.tsx": require("../src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.stories.tsx"), "./src/features/Exchange/common/ShowBuyBanner/ShowBuyBanner.stories.tsx": require("../src/features/Exchange/common/ShowBuyBanner/ShowBuyBanner.stories.tsx"), "./src/features/Exchange/useCases/CreateExchangeOrderScreen/CreateExchangeOrderScreen.stories.tsx": require("../src/features/Exchange/useCases/CreateExchangeOrderScreen/CreateExchangeOrderScreen.stories.tsx"), "./src/features/Exchange/useCases/CreateExchangeOrderScreen/EditAmount/EditAmount.stories.tsx": require("../src/features/Exchange/useCases/CreateExchangeOrderScreen/EditAmount/EditAmount.stories.tsx"), @@ -244,7 +243,6 @@ const getStories = () => { "./src/features/Swap/useCases/ConfirmTxScreen/ShowSubmittedTxScreen/ShowSubmittedTxScreen.stories.tsx": require("../src/features/Swap/useCases/ConfirmTxScreen/ShowSubmittedTxScreen/ShowSubmittedTxScreen.stories.tsx"), "./src/features/Swap/useCases/ReviewSwap/TransactionSummary.stories.tsx": require("../src/features/Swap/useCases/ReviewSwap/TransactionSummary.stories.tsx"), "./src/features/Swap/useCases/ShowPreprodNoticeScreen/ShowPreprodNoticeScreen.stories.tsx": require("../src/features/Swap/useCases/ShowPreprodNoticeScreen/ShowPreprodNoticeScreen.stories.tsx"), - "./src/features/Swap/useCases/ShowSanchoNoticeScreen/ShowSanchoNoticeScreen.stories.tsx": require("../src/features/Swap/useCases/ShowSanchoNoticeScreen/ShowSanchoNoticeScreen.stories.tsx"), "./src/features/Swap/useCases/StartOrderSwapScreen/CreateOrder/Actions/AmountActions/AmountActions.stories.tsx": require("../src/features/Swap/useCases/StartOrderSwapScreen/CreateOrder/Actions/AmountActions/AmountActions.stories.tsx"), "./src/features/Swap/useCases/StartOrderSwapScreen/CreateOrder/Actions/AmountActions/ResetQuantities.stories.tsx": require("../src/features/Swap/useCases/StartOrderSwapScreen/CreateOrder/Actions/AmountActions/ResetQuantities.stories.tsx"), "./src/features/Swap/useCases/StartOrderSwapScreen/CreateOrder/Actions/AmountActions/SwitchTokens.stories.tsx": require("../src/features/Swap/useCases/StartOrderSwapScreen/CreateOrder/Actions/AmountActions/SwitchTokens.stories.tsx"), diff --git a/apps/wallet-mobile/src/features/Exchange/common/ProviderItem/ProviderItem.tsx b/apps/wallet-mobile/src/features/Exchange/common/ProviderItem/ProviderItem.tsx index 601ff50b3f..526c9afef1 100644 --- a/apps/wallet-mobile/src/features/Exchange/common/ProviderItem/ProviderItem.tsx +++ b/apps/wallet-mobile/src/features/Exchange/common/ProviderItem/ProviderItem.tsx @@ -24,11 +24,10 @@ export const ProviderItem = ({onPress, fee, rightAdornment, leftAdornment, disab const {orderType} = useExchange() const isPreprod = network === Chain.Network.Preprod - const isSancho = network === Chain.Network.Sancho const isMainnet = network === Chain.Network.Mainnet const isBuy = orderType === 'buy' - if ((isPreprod || isSancho) && isBuy) return null + if (isPreprod && isBuy) return null return ( <> diff --git a/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.stories.tsx b/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.stories.tsx deleted file mode 100644 index 33790e96d1..0000000000 --- a/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.stories.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import {storiesOf} from '@storybook/react-native' -import React from 'react' - -import {SanchonetFaucetBanner} from './SanchonetFaucetBanner' - -storiesOf('Exchange SanchonetFaucetBanner', module) // - .add('initial', () => ) diff --git a/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.tsx b/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.tsx deleted file mode 100644 index 1180aae206..0000000000 --- a/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/SanchonetFaucetBanner.tsx +++ /dev/null @@ -1,102 +0,0 @@ -import {useTheme} from '@yoroi/theme' -import * as React from 'react' -import {Linking, StyleSheet, Text, View} from 'react-native' -import LinearGradient from 'react-native-linear-gradient' - -import {Button} from '../../../../components/Button/Button' -import {Space} from '../../../../components/Space/Space' -import {Spacer} from '../../../../components/Spacer/Spacer' -import {useStrings} from '../useStrings' -import {PreprodFaucetBannerLogo} from './PreprodFaucetBannerLogo' - -export const SanchonetFaucetBanner = () => { - const strings = useStrings() - const {styles, colors} = useStyles() - - const handleOnPress = () => { - Linking.openURL('https://sancho.network/faucet/') - } - - return ( - - - {strings.sanchoFaucetBannerTitle} - - - - - - - - - {strings.sanchoFaucetBannerText} - - - -