From 2d6bb1b5feeb77b0ff8e05339a6ed52e0d459065 Mon Sep 17 00:00:00 2001 From: Wade King Date: Fri, 24 Nov 2023 15:34:33 -0800 Subject: [PATCH] feat: remove connection notification in proof/offer over existing connection (#1035) Signed-off-by: wadeking98 --- .../core/App/screens/CredentialOffer.tsx | 6 +- .../legacy/core/App/screens/ProofRequest.tsx | 2 +- .../CredentialOffer.test.tsx.snap | 357 ------------------ 3 files changed, 6 insertions(+), 359 deletions(-) diff --git a/packages/legacy/core/App/screens/CredentialOffer.tsx b/packages/legacy/core/App/screens/CredentialOffer.tsx index 402e5d9aeb..007b9d0d78 100644 --- a/packages/legacy/core/App/screens/CredentialOffer.tsx +++ b/packages/legacy/core/App/screens/CredentialOffer.tsx @@ -25,6 +25,7 @@ import { DispatchAction } from '../contexts/reducers/store' import { useStore } from '../contexts/store' import { useTheme } from '../contexts/theme' import { useTour } from '../contexts/tour/tour-context' +import { useOutOfBandByConnectionId } from '../hooks/connections' import { BifoldError } from '../types/error' import { TabStacks, NotificationStackParams, Screens } from '../types/navigators' import { ModalUsage } from '../types/remove' @@ -62,6 +63,7 @@ const CredentialOffer: React.FC = ({ navigation, route }) const [store, dispatch] = useStore() const { start } = useTour() const screenIsFocused = useIsFocused() + const goalCode = useOutOfBandByConnectionId(credential?.connectionId ?? '')?.outOfBandInvitation.goalCode const styles = StyleSheet.create({ headerTextContainer: { @@ -220,7 +222,9 @@ const CredentialOffer: React.FC = ({ navigation, route }) }} > {loading ? : null} - + {credentialConnectionLabel && goalCode === 'aries.vc.issue' ? ( + + ) : null}