Commit f11d4387 by G

message props

parent 1912d793
import Box from "@components/bases/Box"; import Box from "@components/bases/Box";
import { ActivityIndicator, Text } from "react-native"; import { ActivityIndicator, Text } from "react-native";
const LoadingModal = () => { interface Props {
message?: string;
}
const LoadingModal = ({ message = "Veuillez patienter..." }: Props) => {
return ( return (
<Box <Box
width={300} width={300}
...@@ -20,7 +24,7 @@ const LoadingModal = () => { ...@@ -20,7 +24,7 @@ const LoadingModal = () => {
shadowOpacity={0.5} shadowOpacity={0.5}
> >
<ActivityIndicator size={"large"} /> <ActivityIndicator size={"large"} />
<Text>Veuillez patienter</Text> <Text>{message}</Text>
</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