diff --git a/components/BottomModal.tsx b/components/BottomModal.tsx index d0421784e..4e90d1c99 100644 --- a/components/BottomModal.tsx +++ b/components/BottomModal.tsx @@ -166,8 +166,8 @@ const BottomModal = forwardRef( if (React.isValidElement(footer)) { return footerDefaultMargins ? {footer} : footer; } else if (typeof footer === 'function') { - const FooterComponent = footer as ComponentType; - return ; + const ModalFooterComponent = footer as ComponentType; + return ; } return undefined; @@ -186,9 +186,9 @@ const BottomModal = forwardRef( FooterComponent={FooterComponent as ReactElement} {...props} > - {renderHeader()} {children} {Platform.OS === 'android' && (renderFooter() as ReactNode)} + {renderHeader()} ); }, @@ -202,10 +202,13 @@ const styles = StyleSheet.create({ justifyContent: 'center', }, headerContainer: { + position: 'absolute', flexDirection: 'row', alignItems: 'center', paddingVertical: 8, minHeight: 22, + right: 16, + top: 16, }, headerContent: { flex: 1, @@ -236,7 +239,8 @@ const styles = StyleSheet.create({ alignItems: 'center', }, childrenContainer: { - marginTop: 0, + paddingTop: 66, + paddingHorizontal: 16, width: '100%', }, }); diff --git a/components/PromptPasswordConfirmationModal.tsx b/components/PromptPasswordConfirmationModal.tsx index 6d67c950d..14bd919fa 100644 --- a/components/PromptPasswordConfirmationModal.tsx +++ b/components/PromptPasswordConfirmationModal.tsx @@ -259,18 +259,24 @@ const PromptPasswordConfirmationModal = forwardRef + + + ) : ( - - {!isSuccess && ( - + {modalType === MODAL_TYPES.CREATE_PASSWORD && showExplanation && ( {loc.settings.encrypt_storage_explanation_headline} @@ -296,12 +302,6 @@ const PromptPasswordConfirmationModal = forwardRef - )} {(modalType === MODAL_TYPES.ENTER_PASSWORD || @@ -393,9 +393,11 @@ const styles = StyleSheet.create({ justifyContent: 'center', alignItems: 'center', }, + minHeight: { + minHeight: 320, + }, feeModalFooter: { - paddingBottom: 36, - paddingHorizontal: 24, + paddingHorizontal: 16, flexDirection: 'row', justifyContent: 'space-between', }, diff --git a/components/SelectFeeModal.tsx b/components/SelectFeeModal.tsx index ecdc9c735..8cccdc764 100644 --- a/components/SelectFeeModal.tsx +++ b/components/SelectFeeModal.tsx @@ -148,8 +148,8 @@ const SelectFeeModal = forwardRef( } const fee = Number(customFee) < 1 ? '1' : customFee; setCustomFee(fee); - await feeModalRef.current?.dismiss(); await customModalRef.current?.dismiss(); + await feeModalRef.current?.dismiss(); }; const handleCancel = async () => { @@ -171,8 +171,6 @@ const SelectFeeModal = forwardRef( @@ -213,7 +211,6 @@ const SelectFeeModal = forwardRef( blurTint="regular" onCloseModalPressed={handleCancel} backgroundColor={colors.modal} - contentContainerStyle={styles.modalContent} footer={ @@ -259,9 +256,6 @@ const styles = StyleSheet.create({ bottom: 0, right: 8, }, - modalContent: { - margin: 22, - }, optionsContent: { padding: 22, }, diff --git a/screen/send/coinControl.js b/screen/send/coinControl.js index 9abd71a23..90f5c5660 100644 --- a/screen/send/coinControl.js +++ b/screen/send/coinControl.js @@ -218,7 +218,7 @@ const OutputModalContent = ({ output, wallet, onUseCoin, frozen, setFrozen }) => }, [memo]); return ( - <> + switch={switchValue} /> - + ); }; @@ -425,8 +425,7 @@ const CoinControl = () => {