Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hot fix for ledger account select screen to provide disclaimer copy information. #10654

Merged
merged 9 commits into from
Aug 15, 2024
6 changes: 6 additions & 0 deletions app/components/UI/HardwareWallet/AccountSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ interface ISelectQRAccountsProps {
onUnlock: (accountIndex: number[]) => void;
onForget: () => void;
title: string;
warningMsg?: string;
subMsg?: string;
}

const AccountSelector = (props: ISelectQRAccountsProps) => {
Expand All @@ -35,6 +37,8 @@ const AccountSelector = (props: ISelectQRAccountsProps) => {
onForget,
onUnlock,
title,
warningMsg,
subMsg,
} = props;

const { colors } = useTheme();
Expand Down Expand Up @@ -80,6 +84,8 @@ const AccountSelector = (props: ISelectQRAccountsProps) => {
return (
<View style={styles.container}>
<Text style={styles.title}>{title}</Text>
{warningMsg && <Text style={styles.warning}>{warningMsg}</Text>}
{subMsg && <Text style={styles.subMsg}>{subMsg}</Text>}
<FlatList
data={formattedAccounts}
keyExtractor={(item) => `address-${item.index}`}
Expand Down
11 changes: 11 additions & 0 deletions app/components/UI/HardwareWallet/AccountSelector/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ export const createStyle = (colors: any) =>
...fontStyles.normal,
color: colors.text.default,
},
warning: {
fontSize: 14,
marginBottom: 5,
...fontStyles.bold,
},
subMsg: {
fontSize: 12,
marginBottom: 5,
...fontStyles.normal,
color: colors.text.default,
},
account: {
flexDirection: 'row',
paddingHorizontal: 10,
Expand Down
4 changes: 3 additions & 1 deletion app/components/Views/LedgerSelectAccount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ const LedgerSelectAccount = () => {
setForgetDevice(true);
setBlockingModalVisible(true);
}}
title={strings('connect_qr_hardware.select_accounts')}
title={strings('ledger.select_accounts')}
subMsg={strings('ledger.select_accounts_sub_msg')}
warningMsg={strings('ledger.select_accounts_warning')}
/>
</View>
<BlockingActionModal
Expand Down
Loading
Loading