From f610f5c6404fdd061935b396751b82778898b769 Mon Sep 17 00:00:00 2001 From: Martin Cayuelas Date: Wed, 28 Sep 2022 11:07:05 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=92=84=20support(UI):=20Onboarding=20?= =?UTF-8?q?quizz=20pixel=20polish=20LLM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Onboarding/steps/newDeviceInfo.tsx | 61 +++++++++++++------ 1 file changed, 42 insertions(+), 19 deletions(-) diff --git a/apps/ledger-live-mobile/src/screens/Onboarding/steps/newDeviceInfo.tsx b/apps/ledger-live-mobile/src/screens/Onboarding/steps/newDeviceInfo.tsx index 55580397fd0d..61af212f6759 100644 --- a/apps/ledger-live-mobile/src/screens/Onboarding/steps/newDeviceInfo.tsx +++ b/apps/ledger-live-mobile/src/screens/Onboarding/steps/newDeviceInfo.tsx @@ -5,12 +5,15 @@ import { Flex, Carousel, Text, Button, Icons } from "@ledgerhq/native-ui"; import { useNavigation, useRoute, RouteProp } from "@react-navigation/native"; import { SafeAreaView } from "react-native-safe-area-context"; import styled from "styled-components/native"; +import { space } from "@ledgerhq/native-ui/styles/theme"; +import { StyleSheet } from "react-native"; import { ScreenName } from "../../../const"; import Illustration from "../../../images/illustration/Illustration"; import { normalize } from "../../../helpers/normalizeSize"; import { DeviceNames } from "../types"; +import InvertTheme from "../../../components/theme/InvertTheme"; const StyledSafeAreaView = styled(SafeAreaView)` flex: 1; @@ -33,7 +36,7 @@ const Card = ({ index /* , deviceModelId */ }: CardType) => { const { t } = useTranslation(); return ( - + { {t(`onboarding.stepNewDevice.${index}.title`)} - + {t(`onboarding.stepNewDevice.${index}.desc`)} @@ -76,7 +79,7 @@ const Footer = ({ index }: { index: number }) => { return ( @@ -95,35 +98,55 @@ function OnboardingStepNewDevice() { const route = useRoute(); const navigation = useNavigation(); const { deviceModelId } = route.params; - + const { t } = useTranslation(); const handleBack = useCallback(() => navigation.goBack(), [navigation]); return ( -