From db538b177a32838a6d736dbb83bc0853e2aaa7e1 Mon Sep 17 00:00:00 2001 From: Poonam Ghewande Date: Wed, 15 Nov 2023 20:34:05 +0530 Subject: [PATCH] fix bugs contact modal Signed-off-by: Poonam Ghewande --- app/screens/Connection.tsx | 91 +++++++++++++++---------- app/screens/ContactDetails.tsx | 101 +++++++++++++++------------- app/screens/OrganizationDetails.tsx | 38 +++++++---- 3 files changed, 134 insertions(+), 96 deletions(-) diff --git a/app/screens/Connection.tsx b/app/screens/Connection.tsx index f97fad674..3d3eb7140 100644 --- a/app/screens/Connection.tsx +++ b/app/screens/Connection.tsx @@ -15,6 +15,7 @@ import { useNotifications } from '../hooks/notifications' import { Screens, TabStacks, DeliveryStackParams, Stacks } from '../types/navigators' import { useAppAgent } from '../utils/agent' import { testIdWithKey } from '../utils/testable' +import { heightPercentageToDP } from 'react-native-responsive-screen' type ConnectionProps = StackScreenProps @@ -72,6 +73,11 @@ const Connection: React.FC = ({ navigation, route }) => { marginTop: 'auto', margin: 20, }, + controlsContainerHome: { + justifyContent: 'center', + alignSelf: 'center', + marginTop: heightPercentageToDP('50%'), + }, delayMessageText: { textAlign: 'center', marginTop: 20, @@ -151,7 +157,7 @@ const Connection: React.FC = ({ navigation, route }) => { oobRecord && (!goalCode || (!goalCode.startsWith('aries.vc.verify') && !goalCode.startsWith('aries.vc.issue'))) ) { - navigation.navigate(Stacks.ConnectionStack, { + navigation.navigate(Stacks.ContactStack, { screen: Screens.ContactDetails, params: { connectionId: connectionId }, }) @@ -196,44 +202,55 @@ const Connection: React.FC = ({ navigation, route }) => { }, [notifications]) return ( - { - dispatch({ isVisible: false }) - }}> - - - - - {t('Connection.JustAMoment')} - - + + { + dispatch({ isVisible: false }) + }}> + + + + + {t('Connection.JustAMoment')} + + - - - + + + - {state.shouldShowDelayMessage && ( - - {t('Connection.TakingTooLong')} - - )} - - -