From 1c87c65aa981bda63a1d3d42c33c2b19a9e858c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20B=C4=99tka?= <37906388+mateki0@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:28:16 +0200 Subject: [PATCH] Fix/minor bugs (#977) * fix: privacy policy bg color on dark theme * fix: infinite loader after closing team modal with x button --- src/screens/dashboard/Dashboard.tsx | 2 +- src/screens/welcome/Welcome.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/screens/dashboard/Dashboard.tsx b/src/screens/dashboard/Dashboard.tsx index 8205eb5f5..08d13e9f2 100644 --- a/src/screens/dashboard/Dashboard.tsx +++ b/src/screens/dashboard/Dashboard.tsx @@ -44,7 +44,7 @@ export const Dashboard = () => { hasIndicator style={teamsModalStyle} isOpen={isSuccessModalVisible} - onHide={closeSuccessModal}> + onHide={handleModalClose}> diff --git a/src/screens/welcome/Welcome.tsx b/src/screens/welcome/Welcome.tsx index d99aeb461..06c929cbc 100644 --- a/src/screens/welcome/Welcome.tsx +++ b/src/screens/welcome/Welcome.tsx @@ -114,7 +114,7 @@ export const Welcome = ({ route }: AuthNavigationProps<'WELCOME'>) => { style={{ marginTop: isIos ? 30 : 0, }} - backdropColor="white" + backdropColor={styles.privacyPolicyModalBackdrop.backgroundColor} backdropOpacity={1} isVisible={isPrivacyPolicyModalVisible} onBackdropPress={hidePrivacyPolicyModal} @@ -129,4 +129,7 @@ const useStyles = mkUseStyles((theme: Theme) => ({ formContainer: { marginHorizontal: theme.spacing.l, }, + privacyPolicyModalBackdrop: { + backgroundColor: theme.colors.dashboardBackground, + }, }))