From 97b625ced45e873f9fd63c15f777952640d1c507 Mon Sep 17 00:00:00 2001 From: BrodyHughes <41711440+BrodyHughes@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:34:34 -0500 Subject: [PATCH] init --- .../SettingsSheet/components/Backups/BackUpMenuButton.tsx | 1 + .../SettingsSheet/components/Backups/SecretWarning.tsx | 8 +++++++- .../SettingsSheet/components/Backups/ViewWalletBackup.tsx | 1 + src/screens/SettingsSheet/components/Menu.tsx | 5 +++-- src/screens/SettingsSheet/components/MenuHeader.tsx | 5 +++-- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/screens/SettingsSheet/components/Backups/BackUpMenuButton.tsx b/src/screens/SettingsSheet/components/Backups/BackUpMenuButton.tsx index a4b292ca9a0..1b2f4334e8e 100644 --- a/src/screens/SettingsSheet/components/Backups/BackUpMenuButton.tsx +++ b/src/screens/SettingsSheet/components/Backups/BackUpMenuButton.tsx @@ -84,6 +84,7 @@ export const BackUpMenuItem = ({ > {({ onNewEmoji }: { onNewEmoji: () => void }) => ( { - + { .map((account: RainbowAccount) => ( } diff --git a/src/screens/SettingsSheet/components/Menu.tsx b/src/screens/SettingsSheet/components/Menu.tsx index 273debda1cd..e324b60a21b 100644 --- a/src/screens/SettingsSheet/components/Menu.tsx +++ b/src/screens/SettingsSheet/components/Menu.tsx @@ -5,13 +5,14 @@ interface MenuProps { children: React.ReactNode; header?: string; description?: string | React.ReactNode; + testId?: string; } -const Menu = ({ children, description, header }: MenuProps) => { +const Menu = ({ children, description, header, testId }: MenuProps) => { return ( <> {!!header && ( - + {header} diff --git a/src/screens/SettingsSheet/components/MenuHeader.tsx b/src/screens/SettingsSheet/components/MenuHeader.tsx index 4aa2e40c2a6..e83847f2244 100644 --- a/src/screens/SettingsSheet/components/MenuHeader.tsx +++ b/src/screens/SettingsSheet/components/MenuHeader.tsx @@ -128,14 +128,15 @@ interface LabelProps { text: string; linkText?: string; onPress?: () => void; + testID?: string; } -const Label = ({ text, linkText, onPress }: LabelProps) => { +const Label = ({ text, linkText, onPress, testID }: LabelProps) => { return ( {text} {linkText && onPress && ( - + {' '} {linkText}