diff --git a/app/src/components/AddCredentialSlider.tsx b/app/src/components/AddCredentialSlider.tsx index 5faa17919..aea6c3979 100644 --- a/app/src/components/AddCredentialSlider.tsx +++ b/app/src/components/AddCredentialSlider.tsx @@ -2,7 +2,7 @@ import { AnonCredsCredentialMetadataKey } from '@aries-framework/anoncreds/build import { CredentialState } from '@aries-framework/core' import { useCredentialByState } from '@aries-framework/react-hooks' import { useNavigation } from '@react-navigation/native' -import { useTheme, Screens, Stacks, testIdWithKey } from 'aries-bifold' +import { useTheme, Screens, Stacks, testIdWithKey, testIdForAccessabilityLabel } from 'aries-bifold' import React, { useEffect, useState, useCallback } from 'react' import { useTranslation } from 'react-i18next' import { DeviceEventEmitter, Modal, StyleSheet, Text, TouchableOpacity, View } from 'react-native' @@ -65,6 +65,9 @@ const AddCredentialSlider: React.FC = () => { drawerRowItem: { color: ColorPallet.grayscale.black, }, + closeButton: { + alignSelf: 'flex-start', + }, }) const deactivateSlider = useCallback(() => { @@ -113,19 +116,30 @@ const AddCredentialSlider: React.FC = () => { accessibilityRole={'button'} onPress={deactivateSlider} hitSlop={hitSlop} + style={styles.closeButton} > - Choose + {t('AddCredentialSlider.Choose')} {showGetFoundationCredential && ( - + - Get your Person credential + {t('BCID.GetDigitalID')} )} - + - Scan a QR code + {t('AddCredentialSlider.ScanQRCode')} diff --git a/app/src/localization/en/index.ts b/app/src/localization/en/index.ts index c6075f1fd..4b303a66a 100644 --- a/app/src/localization/en/index.ts +++ b/app/src/localization/en/index.ts @@ -167,6 +167,10 @@ const translation = { "Title": "Notifications", "PushNotifications": "Push Notifications", "Continue": "Continue", + }, + "AddCredentialSlider": { + "Choose": "Choose", + "ScanQRCode": "Scan a QR code", } } diff --git a/app/src/localization/fr/index.ts b/app/src/localization/fr/index.ts index 75cbbb4f4..86e726d3f 100644 --- a/app/src/localization/fr/index.ts +++ b/app/src/localization/fr/index.ts @@ -166,6 +166,10 @@ const translation = { "Title": "Notifications (FR)", "PushNotifications": "Push Notifications (FR)", "Continue": "Continue (FR)", + }, + "AddCredentialSlider": { + "Choose": "Choose (FR)", + "ScanQRCode": "Scan a QR code (FR)", } } diff --git a/app/src/localization/pt-br/index.ts b/app/src/localization/pt-br/index.ts index 982b5462a..fc3e05608 100644 --- a/app/src/localization/pt-br/index.ts +++ b/app/src/localization/pt-br/index.ts @@ -166,6 +166,10 @@ const translation = { "Title": "Notifications (PT-BR)", "PushNotifications": "Push Notifications (PT-BR)", "Continue": "Continue (PT-BR)", + }, + "AddCredentialSlider": { + "Choose": "Choose (PT-BR)", + "ScanQRCode": "Scan a QR code (PT-BR)", } } diff --git a/bifold b/bifold index 62c13ee4a..8056c3d67 160000 --- a/bifold +++ b/bifold @@ -1 +1 @@ -Subproject commit 62c13ee4acdcafb7ffb5949bc90238634e5504e5 +Subproject commit 8056c3d6772dd1666bd9a37841a03b052c3f79ab