From 132a45153c75cba4e4e08bbbc1a4b83c3fd36b4d Mon Sep 17 00:00:00 2001 From: Francis Rodriguez <39339295+Freshenext@users.noreply.github.com> Date: Thu, 5 Oct 2023 07:46:31 -0300 Subject: [PATCH] Added ErrorTypography selector for QA (#764) * Added ErrorTypography selector for QA * added error message when creating a wallet with a bad seed * added title --------- Co-authored-by: jormel --- src/components/token/index.tsx | 9 ++++++++- src/screens/createKeys/import/ImportMasterKeyScreen.tsx | 5 ++++- src/screens/pinScreen/index.tsx | 5 ++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/components/token/index.tsx b/src/components/token/index.tsx index 93142acd0..6a2bfc12b 100644 --- a/src/components/token/index.tsx +++ b/src/components/token/index.tsx @@ -45,6 +45,10 @@ interface Props { amIReceiver?: boolean } +enum TestID { + ErrorTypography = 'ErrorTypography', +} + export const TokenBalance = ({ firstValue, secondValue, @@ -133,7 +137,10 @@ export const TokenBalance = ({ )} {error && ( - + {error} )} diff --git a/src/screens/createKeys/import/ImportMasterKeyScreen.tsx b/src/screens/createKeys/import/ImportMasterKeyScreen.tsx index d4a7af14a..76317dc63 100644 --- a/src/screens/createKeys/import/ImportMasterKeyScreen.tsx +++ b/src/screens/createKeys/import/ImportMasterKeyScreen.tsx @@ -176,7 +176,10 @@ export const ImportMasterKeyScreen = ( return ( - + {t(headerTextMap.get(status))} { ) : ( <> {hasError && errorTimeout()} - + {hasError ? t('pin_screen_wrong_pin') : title} {hasError ? (