From a15c58f0ef311ddf3895309326692a34fc17386a Mon Sep 17 00:00:00 2001 From: Bryce McMath Date: Thu, 19 Oct 2023 18:22:47 -0700 Subject: [PATCH 1/2] chore: updates to credential slider Signed-off-by: Bryce McMath --- app/src/components/AddCredentialSlider.tsx | 26 +++++++++++++++++----- app/src/localization/en/index.ts | 4 ++++ app/src/localization/fr/index.ts | 4 ++++ app/src/localization/pt-br/index.ts | 4 ++++ 4 files changed, 32 insertions(+), 6 deletions(-) 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 f6d1918b4..d689f68e6 100644 --- a/app/src/localization/en/index.ts +++ b/app/src/localization/en/index.ts @@ -166,6 +166,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 c56978f84..3c4a71996 100644 --- a/app/src/localization/fr/index.ts +++ b/app/src/localization/fr/index.ts @@ -165,6 +165,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 1a949006f..c1f590166 100644 --- a/app/src/localization/pt-br/index.ts +++ b/app/src/localization/pt-br/index.ts @@ -165,6 +165,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)", } } From 6278f2cab55715905420ced2fed5a475894975f2 Mon Sep 17 00:00:00 2001 From: Bryce McMath Date: Fri, 20 Oct 2023 14:44:59 -0700 Subject: [PATCH 2/2] chore: update submodule Signed-off-by: Bryce McMath --- bifold | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bifold b/bifold index 62c13ee4a..8056c3d67 160000 --- a/bifold +++ b/bifold @@ -1 +1 @@ -Subproject commit 62c13ee4acdcafb7ffb5949bc90238634e5504e5 +Subproject commit 8056c3d6772dd1666bd9a37841a03b052c3f79ab