From ae7edd8fec3e1af6ea04269f113d8b47385732c3 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Fri, 6 Oct 2023 13:26:56 -0700 Subject: [PATCH] more overlay debugging --- app/mobile/src/utils/Prompt.jsx | 41 +++++++++++++-------------- app/mobile/src/utils/Prompt.styled.js | 14 +-------- 2 files changed, 20 insertions(+), 35 deletions(-) diff --git a/app/mobile/src/utils/Prompt.jsx b/app/mobile/src/utils/Prompt.jsx index 94965b93..4d5160f1 100644 --- a/app/mobile/src/utils/Prompt.jsx +++ b/app/mobile/src/utils/Prompt.jsx @@ -40,27 +40,24 @@ export function Prompt() { onRequestClose={display.actions.hidePrompt} > - - - - { display.state.prompt?.title } - - { display.state.prompt?.cancel && ( - - { display.state.prompt?.cancel?.label } - - )} - { display.state.prompt?.ok && ( - - { !busy && ( - { display.state.prompt?.ok?.label } - )} - { busy && ( - - )} - - )} - + + { display.state.prompt?.title }? + + { display.state.prompt?.cancel && ( + + { display.state.prompt?.cancel?.label } + + )} + { display.state.prompt?.ok && ( + + { !busy && ( + { display.state.prompt?.ok?.label } + )} + { busy && ( + + )} + + )} @@ -73,7 +70,7 @@ export function Prompt() { supportedOrientations={['portrait', 'landscape']} onRequestClose={display.actions.hideAlert} > - + { display.state.alert?.title } { display.state.alert?.message } diff --git a/app/mobile/src/utils/Prompt.styled.js b/app/mobile/src/utils/Prompt.styled.js index dc6336db..bae43f8f 100644 --- a/app/mobile/src/utils/Prompt.styled.js +++ b/app/mobile/src/utils/Prompt.styled.js @@ -5,16 +5,10 @@ export const styles = StyleSheet.create({ modalOverlay: { width: '100%', height: '100%', - }, - modalBase: { + backgroundColor: '#333333', display: 'flex', - width: '100%', - height: '100%', alignItems: 'center', justifyContent: 'center', - position: 'absolute', - top: 0, - left: 0, }, modalContainer: { backgroundColor: Colors.modalBase, @@ -112,11 +106,5 @@ export const styles = StyleSheet.create({ justifyContent: 'center', flexDirection: 'row', }, - blur: { - width: '100%', - height: '100%', - backgroundColor: '#333333', - opacity: 0.8, - }, });