You need to sign in or sign up before continuing.
Commit 8168718c by G

do not remember what i was trying to do here.

parent 9eefe230
import { useModalsManagerContext } from "@/contexts/ModalsManagerContext";
import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext"; import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext";
import type { MainStackScreenComponentProps } from "@/navigations/Types"; import type { MainStackScreenComponentProps } from "@/navigations/Types";
import Button from "@components/Button"; import Button from "@components/Button";
...@@ -9,47 +10,61 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn"> ...@@ -9,47 +10,61 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn">
navigation, navigation,
}) => { }) => {
const { isAuthenticated } = useUserAuthenticationContext(); const { isAuthenticated } = useUserAuthenticationContext();
const { showModal, closeModal } = useModalsManagerContext();
if (isAuthenticated) { if (isAuthenticated) {
navigation.replace("appBottomTabsNavigator"); navigation.replace("appBottomTabsNavigator");
} }
return ( return (
<Box style={style.container} p={"xl"} backgroundColor={"white"}> <>
<Box mt={"s"}> {/* <LoadingModal /> */}
<Box
height={300} <Box style={style.container} p={"xl"} backgroundColor={"white"}>
width={300} <Box mt={"s"}>
backgroundColor={"primary"} <Box
mb={"l"} height={300}
alignItems={"center"} width={300}
justifyContent={"center"} backgroundColor={"primary"}
> mb={"l"}
<Image alignItems={"center"}
source={require("../../assets/payment_processing.png")} justifyContent={"center"}
style={style.image} >
/> <Image
</Box> source={require("../../assets/payment_processing.png")}
<Text color={"gray"} fontSize={16} textAlign={"center"}> style={style.image}
Acceptez des paiements en magasin et en ligne et recevez votre argent en />
quelques secondes </Box>
</Text> <Text color={"gray"} fontSize={16} textAlign={"center"}>
<Box mt={"xl"}> Acceptez des paiements en magasin et en ligne et recevez votre argent en
<Button quelques secondes
variant={"full"} </Text>
textVariants={"primary"} <Box mt={"xl"}>
label="Se connecter" <Button
onPress={() => navigation.navigate("userLoginScreen")} variant={"full"}
/> textVariants={"primary"}
<Button label="Se connecter"
variant={"clean"} onPress={() => navigation.navigate("userLoginScreen")}
textVariants={"secondary"} // onPress={() =>
label="Creer un compte" // showModal(
onPress={() => {}} // <InformationModal
/> // onPress={closeModal}
// actionLabel="Se connecter"
// // message="L'oiseau sur le baobab ne doit pas oublier qu'il à porter des lunettes"
// />,
// )
// }
/>
<Button
variant={"clean"}
textVariants={"secondary"}
label="Creer un compte"
onPress={() => {}}
/>
</Box>
</Box> </Box>
</Box> </Box>
</Box> </>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment