From 24c7f6212d5e25840bd6a7c61b6017f80c67694d Mon Sep 17 00:00:00 2001 From: Bryce McMath Date: Mon, 18 Dec 2023 13:19:09 -0800 Subject: [PATCH] feat: add scrim to common remove modal Signed-off-by: Bryce McMath --- .../components/modals/CommonRemoveModal.tsx | 100 +- .../CommonRemoveModal.test.tsx.snap | 6187 +++++++++-------- .../CredentialOffer.test.tsx.snap | 691 +- 3 files changed, 3528 insertions(+), 3450 deletions(-) diff --git a/packages/legacy/core/App/components/modals/CommonRemoveModal.tsx b/packages/legacy/core/App/components/modals/CommonRemoveModal.tsx index 945a14f8d6..385efcf3f6 100644 --- a/packages/legacy/core/App/components/modals/CommonRemoveModal.tsx +++ b/packages/legacy/core/App/components/modals/CommonRemoveModal.tsx @@ -110,6 +110,10 @@ const CommonRemoveModal: React.FC = ({ usage, visible, o marginBottom: Platform.OS === 'ios' ? 108 : 80, position: 'relative', }, + overlay: { + flex: 1, + backgroundColor: 'rgba(0,0,0,0.5)', + }, headerView: { alignItems: 'flex-end', marginTop: 65, @@ -286,55 +290,57 @@ const CommonRemoveModal: React.FC = ({ usage, visible, o return ( - - onCancel && onCancel()} - hitSlop={hitSlop} + + + onCancel && onCancel()} + hitSlop={hitSlop} + > + + + + - - - - - - <> - {headerImageForType()} - {contentForType()} - - - - - -