Commit 21bbd9d7 by G

cleanup a a little the component. fix somes imports

parent 01f6b247
import { useModalsManagerContext } from "@/contexts/ModalsManagerContext";
import Button from "@components/Button";
import Card from "@components/Card";
import Box from "@components/bases/Box";
// import { Text } from "react-native"
import Text from "@components/bases/Text";
import ErrorIcon from "@components/icons/ErrorIcon";
import Box from "@re-box";
import Card from "@re-card";
import Text from "@re-text";
interface Props {
message?: string;
......@@ -14,23 +13,6 @@ interface Props {
const ErrorModal = ({ message = "Une erreur s'est produite" }: Props) => {
const { closeModal } = useModalsManagerContext();
return (
// <Box
// width={300}
// height={200}
// backgroundColor={"white"}
// alignItems={"center"}
// justifyContent={"center"}
// alignSelf={"center"}
// marginTop={"x240"}
// position={"absolute"}
// zIndex={10}
// borderRadius={20}
// gap={"m"}
// shadowColor={"black"}
// shadowOffset={{ width: 0, height: 0 }}
// shadowOpacity={0.5}
// p={"s"}
// >
<Card variant={"modal"}>
<ErrorIcon />
<Text variant={"gray"} fontWeight={"bold"}>
......@@ -45,7 +27,6 @@ const ErrorModal = ({ message = "Une erreur s'est produite" }: Props) => {
/>
</Box>
</Card>
// </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