From 605c1857e6d8102a0f7e742d2583bf11dde935e8 Mon Sep 17 00:00:00 2001 From: ClaudeArs <107423901+ClaudeArs@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:21:31 -0500 Subject: [PATCH] Ajout des contacts dans la section plus (#196) Signed-off-by: ClaudeArs --- app/ios/Podfile.lock | 2 +- app/src/localization/en/index.ts | 1 + app/src/localization/fr/index.ts | 1 + app/src/navigators/PlusStack.tsx | 8 ++++++++ app/src/navigators/navigators.ts | 2 ++ app/src/screens/Plus.tsx | 16 +++++++++++++--- 6 files changed, 26 insertions(+), 4 deletions(-) diff --git a/app/ios/Podfile.lock b/app/ios/Podfile.lock index 151a44892..a2aa07aed 100644 --- a/app/ios/Podfile.lock +++ b/app/ios/Podfile.lock @@ -758,7 +758,7 @@ SPEC CHECKSUMS: anoncreds: 045f191123bb20d7dcdc2f7c19df57ae30c427f6 aries-askar: 3a78d5cfc8faedbfc55a9ff35e2309fc4574a147 BEMCheckBox: 5ba6e37ade3d3657b36caecc35c8b75c6c2b1a4e - boost: 7dcd2de282d72e344012f7d6564d024930a6a440 + boost: 57d2868c099736d80fcd648bf211b4431e51a558 CatCrypto: a477899b6be4954e75be4897e732da098cc0a5a8 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 diff --git a/app/src/localization/en/index.ts b/app/src/localization/en/index.ts index cf4fa3849..dbc6455b7 100644 --- a/app/src/localization/en/index.ts +++ b/app/src/localization/en/index.ts @@ -187,6 +187,7 @@ const translation = { PageTitle: 'More options', ButtonParamsApp: 'Application Settings', ButtonHelpCenter: 'Help Center', + ButtonContacts: 'Contacts', ButtonAbout: 'About', TitleSupport: 'Customer Support', DetailSupport: 'You have a problem with the application or questions, you can contact the team.', diff --git a/app/src/localization/fr/index.ts b/app/src/localization/fr/index.ts index 7c19708e5..72228b737 100644 --- a/app/src/localization/fr/index.ts +++ b/app/src/localization/fr/index.ts @@ -258,6 +258,7 @@ const translation = { ButtonParamsApp: "Paramètres de l'application", ButtonHelpCenter: "Centre d'aide", ButtonAbout: 'À propos', + ButtonContacts: 'Contacts', TitleSupport: 'Soutien à la clientèle', DetailSupport: "Vous avez un problème avec l'application ou des questions, vous pouvez joundre l'équipe.", JoinUsTitle: 'Nous Joindre', diff --git a/app/src/navigators/PlusStack.tsx b/app/src/navigators/PlusStack.tsx index ef156f07c..26d4ca850 100644 --- a/app/src/navigators/PlusStack.tsx +++ b/app/src/navigators/PlusStack.tsx @@ -1,5 +1,6 @@ import { useTheme } from '@hyperledger/aries-bifold-core' import { useDefaultStackOptions } from '@hyperledger/aries-bifold-core/App/navigators/defaultStackOptions' +import ListContacts from '@hyperledger/aries-bifold-core/App/screens/ListContacts' import { createStackNavigator } from '@react-navigation/stack' import React from 'react' import { useTranslation } from 'react-i18next' @@ -26,6 +27,13 @@ const PlusStack: React.FC = () => { title: t('Screens.OptionsPlus'), }} /> + [Stacks.HelpCenterStack]: NavigatorScreenParams [Stacks.AboutStack]: NavigatorScreenParams diff --git a/app/src/screens/Plus.tsx b/app/src/screens/Plus.tsx index 6ba583b6d..f944610ab 100644 --- a/app/src/screens/Plus.tsx +++ b/app/src/screens/Plus.tsx @@ -1,14 +1,15 @@ import { useTheme, Button, ButtonType, testIdWithKey } from '@hyperledger/aries-bifold-core' import { useNavigation } from '@react-navigation/native' -import { StackNavigationProp } from '@react-navigation/stack' +import { StackNavigationProp, StackScreenProps } from '@react-navigation/stack' import { useTranslation } from 'react-i18next' import { ScrollView, StyleSheet, Text, View } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import ContactUs from '../components/ContactUs' -import { SettingStackParams, Stacks, Screens } from '../navigators/navigators' +import { SettingStackParams, OptionsPlusStackParams, Stacks, Screens } from '../navigators/navigators' +type OptionsPlusProps = StackScreenProps -const Plus: React.FC = () => { +const Plus: React.FC = ({ navigation }) => { const { ColorPallet, TextTheme } = useTheme() const { t } = useTranslation() const { navigate } = useNavigation>() @@ -91,6 +92,15 @@ const Plus: React.FC = () => { + +