Improve cloudinary media upload experience.

This commit is contained in:
Patrick Fic
2022-06-21 11:41:42 -07:00
parent 49b77315ba
commit 9eb8a43884
8 changed files with 196 additions and 235 deletions

View File

@@ -169,25 +169,23 @@ export function ScreenMainComponent({
}, [checkUserSession]);
return (
<SafeAreaView style={{ flex: 1 }}>
<NavigationContainer>
{currentUser.authorized === null ? (
<ScreenSplash />
) : currentUser.authorized ? (
bodyshop ? (
HasAccess(bodyshop) ? (
<BottomTabsNavigator />
) : (
<ScreenSplash noAccess />
)
<NavigationContainer>
{currentUser.authorized === null ? (
<ScreenSplash />
) : currentUser.authorized ? (
bodyshop ? (
HasAccess(bodyshop) ? (
<BottomTabsNavigator />
) : (
<ScreenSplash />
<ScreenSplash noAccess />
)
) : (
<ScreenSignIn />
)}
</NavigationContainer>
</SafeAreaView>
<ScreenSplash />
)
) : (
<ScreenSignIn />
)}
</NavigationContainer>
);
}
export default connect(