Skip to content

Commit

Permalink
Inject title and condition link of Scan Help page
Browse files Browse the repository at this point in the history
Signed-off-by: ClaudeArs <[email protected]>
  • Loading branch information
ClaudeArs committed Jan 21, 2025
1 parent c15dcd3 commit ebc54e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/legacy/core/App/localization/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ const translation = {
"EnterPIN": "Enter PIN",
"Home": "Notifications",
"Scan": "Scan",
"ScanHelp": "Scan Help",
"Credentials": "Credentials",
"CredentialDetails": "Credential Details",
"Notifications": "Notifications",
Expand Down
1 change: 1 addition & 0 deletions packages/legacy/core/App/localization/fr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ const translation = {
"EnterPIN": "Saisir le NIP",
"Home": "Notifications",
"Scan": "Numériser",
"ScanHelp": "Aide à la numérisation",
"Credentials": "Justificatifs",
"CredentialDetails": "Détails des attestations",
"Notifications": "Notifications",
Expand Down
1 change: 1 addition & 0 deletions packages/legacy/core/App/navigators/ConnectStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const ConnectStack: React.FC = () => {
name={Screens.ScanHelp}
component={ScanHelp}
options={{
title: t('Screens.ScanHelp'),
...ScreenOptionsDictionary[Screens.ScanHelp]
}}
/>
Expand Down
6 changes: 3 additions & 3 deletions packages/legacy/core/App/screens/ScanHelp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ const ScanHelp: React.FC = () => {
<Text style={TextTheme.headingThree}>{t('Scan.WhatToScan')}</Text>
<Text style={[style.text, { marginTop: 20 }]}>{t('Scan.ScanOnySpecial')}</Text>
<Text style={style.text}>{t('Scan.ScanOnlySpecial2')}</Text>
<Link
{whereToUseWalletUrl && (<Link
linkText={t('Scan.WhereToUseLink')}
style={style.text}
onPress={() => whereToUseWalletUrl && Linking.openURL(whereToUseWalletUrl)}
onPress={() => Linking.openURL(whereToUseWalletUrl)}
testID={testIdWithKey('WhereToUseLink')}
/>
/> )}
<Text style={style.text}>{t('Scan.ScanOnlySpecial3')}</Text>
</ScrollView>
</SafeAreaView>
Expand Down

0 comments on commit ebc54e4

Please sign in to comment.