From 4435a0c2395ee6f01fb47f4c98bbbeb4d8ef45f6 Mon Sep 17 00:00:00 2001 From: Javier Bueno Date: Fri, 26 Jul 2024 17:05:02 +0200 Subject: [PATCH] feature(network-selection): preprod banner --- .../ShowBuyBanner/PreprodFaucetBanner.tsx | 111 +++ .../ShowBuyBanner/PreprodFaucetBannerLogo.tsx | 742 ++++++++++++++++++ .../common/ShowBuyBanner/ShowBuyBanner.tsx | 7 + .../features/Exchange/common/useStrings.tsx | 15 + .../src/kernel/i18n/locales/en-US.json | 3 + .../features/Exchange/common/useStrings.json | 269 ++++--- 6 files changed, 1035 insertions(+), 112 deletions(-) create mode 100644 apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/PreprodFaucetBanner.tsx create mode 100644 apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/PreprodFaucetBannerLogo.tsx diff --git a/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/PreprodFaucetBanner.tsx b/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/PreprodFaucetBanner.tsx new file mode 100644 index 0000000000..87f677140e --- /dev/null +++ b/apps/wallet-mobile/src/features/Exchange/common/ShowBuyBanner/PreprodFaucetBanner.tsx @@ -0,0 +1,111 @@ +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, Spacer} from '../../../../components' +import {Space} from '../../../../components/Space/Space' +import {useStrings} from '../useStrings' +import {PreprodFaucetBannerLogo} from './PreprodFaucetBannerLogo' + +export const PreprodFaucetBanner = () => { + const strings = useStrings() + const {styles, colors} = useStyles() + + const handleOnPress = () => { + Linking.openURL('https://docs.cardano.org/cardano-testnets/tools/faucet/') + } + + return ( + <> + + + + {strings.preprodFaucetBannerTitle} + + + + + + + + + {strings.preprodFaucetBannerText} + + + +