Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
BrodyHughes committed Jul 22, 2024
1 parent 87d5fd1 commit 97b625c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const BackUpMenuItem = ({
>
{({ onNewEmoji }: { onNewEmoji: () => void }) => (
<MenuItem
testID={'backup-now-button'}
hasSfSymbol
leftComponent={
loading === 'loading' ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ const SecretWarningPage = () => {
</Stack>
</Inset>

<Box position="absolute" bottom={{ custom: IS_ANDROID ? 40 : 20 }} alignItems="center" style={{ paddingHorizontal: 24 }}>
<Box
testID={'show-secret-button'}
position="absolute"
bottom={{ custom: IS_ANDROID ? 40 : 20 }}
alignItems="center"
style={{ paddingHorizontal: 24 }}
>
<SheetActionButton
label={i18n.t(i18n.l.back_up.warning.button, {
typeName: secretText,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ const ViewWalletBackup = () => {
.map((account: RainbowAccount) => (
<ContextMenuWrapper account={account} menuConfig={menuConfig} onPressMenuItem={onPressMenuItem} key={account.address}>
<MenuItem
testID={'wallet-backup-button'}
size={60}
disabled
leftComponent={<WalletAvatar account={account} />}
Expand Down
5 changes: 3 additions & 2 deletions src/screens/SettingsSheet/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
<Box paddingBottom="12px" paddingHorizontal={{ custom: 16 }}>
<Box paddingBottom="12px" paddingHorizontal={{ custom: 16 }} testID={testId}>
<Text color="secondary60 (Deprecated)" size="16px / 22px (Deprecated)" weight="bold">
{header}
</Text>
Expand Down
5 changes: 3 additions & 2 deletions src/screens/SettingsSheet/components/MenuHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 color={'secondary60 (Deprecated)'} size="14px / 19px (Deprecated)" align="center" weight="medium">
{text}
{linkText && onPress && (
<Text onPress={onPress} color="blue" size="14px / 19px (Deprecated)" weight="medium">
<Text testID={testID} onPress={onPress} color="blue" size="14px / 19px (Deprecated)" weight="medium">
{' '}
{linkText}
</Text>
Expand Down

0 comments on commit 97b625c

Please sign in to comment.