From 3d5c15de36c7b77d6e0a335b9912ea9698c4e3af Mon Sep 17 00:00:00 2001 From: Gianluca Spada Date: Wed, 8 Jan 2025 09:01:59 +0100 Subject: [PATCH 1/2] chore: add line break props to OperationResultScreenContent --- ts/components/screens/OperationResultScreenContent.tsx | 8 ++++++-- .../screens/ItwIssuanceCredentialFailureScreen.tsx | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ts/components/screens/OperationResultScreenContent.tsx b/ts/components/screens/OperationResultScreenContent.tsx index b118aaee76e..cae9dbecf1c 100644 --- a/ts/components/screens/OperationResultScreenContent.tsx +++ b/ts/components/screens/OperationResultScreenContent.tsx @@ -28,6 +28,7 @@ type OperationResultScreenContentProps = WithTestID<{ pictogram?: IOPictograms; title: string; subtitle?: string | Array; + subtitleProps?: Pick; action?: Pick< ButtonSolidProps, "label" | "accessibilityLabel" | "onPress" | "testID" @@ -52,7 +53,8 @@ const OperationResultScreenContent = forwardRef< secondaryAction, children, testID, - isHeaderVisible + isHeaderVisible, + subtitleProps }, ref ) => ( @@ -81,7 +83,9 @@ const OperationResultScreenContent = forwardRef< <> {typeof subtitle === "string" ? ( - {subtitle} + + {subtitle} + ) : ( )} diff --git a/ts/features/itwallet/issuance/screens/ItwIssuanceCredentialFailureScreen.tsx b/ts/features/itwallet/issuance/screens/ItwIssuanceCredentialFailureScreen.tsx index 695268a2ec1..7969c57556e 100644 --- a/ts/features/itwallet/issuance/screens/ItwIssuanceCredentialFailureScreen.tsx +++ b/ts/features/itwallet/issuance/screens/ItwIssuanceCredentialFailureScreen.tsx @@ -163,7 +163,12 @@ const ContentView = ({ failure }: ContentViewProps) => { }); const resultScreenProps = getOperationResultScreenContentProps(); - return ; + return ( + + ); }; type GetCredentialInvalidStatusDetailsParams = { From 99cdc989961e052db5a876b8097b5e45ce872374 Mon Sep 17 00:00:00 2001 From: Gianluca Spada Date: Wed, 8 Jan 2025 10:21:45 +0100 Subject: [PATCH 2/2] chore: textBreakStrategy in ItwIssuanceEidFailureScreen --- .../issuance/screens/ItwIssuanceEidFailureScreen.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ts/features/itwallet/issuance/screens/ItwIssuanceEidFailureScreen.tsx b/ts/features/itwallet/issuance/screens/ItwIssuanceEidFailureScreen.tsx index b69830b87bb..f3db13936d1 100644 --- a/ts/features/itwallet/issuance/screens/ItwIssuanceEidFailureScreen.tsx +++ b/ts/features/itwallet/issuance/screens/ItwIssuanceEidFailureScreen.tsx @@ -188,5 +188,10 @@ const ContentView = ({ failure }: ContentViewProps) => { const resultScreenProps = getOperationResultScreenContentProps(); - return ; + return ( + + ); };