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 type { MainStackScreenComponentProps } from "@/navigations/Types";
import Button from "@components/Button";
......@@ -9,47 +10,61 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn">
navigation,
}) => {
const { isAuthenticated } = useUserAuthenticationContext();
const { showModal, closeModal } = useModalsManagerContext();
if (isAuthenticated) {
navigation.replace("appBottomTabsNavigator");
}
return (
<Box style={style.container} p={"xl"} backgroundColor={"white"}>
<Box mt={"s"}>
<Box
height={300}
width={300}
backgroundColor={"primary"}
mb={"l"}
alignItems={"center"}
justifyContent={"center"}
>
<Image
source={require("../../assets/payment_processing.png")}
style={style.image}
/>
</Box>
<Text color={"gray"} fontSize={16} textAlign={"center"}>
Acceptez des paiements en magasin et en ligne et recevez votre argent en
quelques secondes
</Text>
<Box mt={"xl"}>
<Button
variant={"full"}
textVariants={"primary"}
label="Se connecter"
onPress={() => navigation.navigate("userLoginScreen")}
/>
<Button
variant={"clean"}
textVariants={"secondary"}
label="Creer un compte"
onPress={() => {}}
/>
<>
{/* <LoadingModal /> */}
<Box style={style.container} p={"xl"} backgroundColor={"white"}>
<Box mt={"s"}>
<Box
height={300}
width={300}
backgroundColor={"primary"}
mb={"l"}
alignItems={"center"}
justifyContent={"center"}
>
<Image
source={require("../../assets/payment_processing.png")}
style={style.image}
/>
</Box>
<Text color={"gray"} fontSize={16} textAlign={"center"}>
Acceptez des paiements en magasin et en ligne et recevez votre argent en
quelques secondes
</Text>
<Box mt={"xl"}>
<Button
variant={"full"}
textVariants={"primary"}
label="Se connecter"
onPress={() => navigation.navigate("userLoginScreen")}
// onPress={() =>
// showModal(
// <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>
</>
);
};
......
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