Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
|
753a2f5622 | 4 weeks ago |
|
9e75786127 | 4 weeks ago |
|
8f89549737 | 4 weeks ago |
|
c352c2c10a | 4 weeks ago |
|
1a0ac79885 | 4 weeks ago |
|
c0fa4421a7 | 4 weeks ago |
|
8b4fa35dc1 | 4 weeks ago |
@ -1,13 +1,16 @@
|
|||||||
import {SafeAreaView, View, Text} from "react-native";
|
import {SafeAreaView, View, Text} from "react-native";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
import InternalError from "@/components/error/InternalErrorProblem";
|
||||||
|
|
||||||
export default function AddScreen() {
|
export default function AddScreen() {
|
||||||
return (
|
return (
|
||||||
<SafeAreaView>
|
<SafeAreaView>
|
||||||
<View>
|
<View>
|
||||||
<Text className="m-7 font-extrabold">Welcome to Add Screen </Text>
|
<InternalError/>
|
||||||
<Text>We will do it soon</Text>
|
|
||||||
</View>
|
</View>
|
||||||
</SafeAreaView>
|
</SafeAreaView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//<Text className="m-7 font-extrabold">Welcome to Add Screen </Text>
|
||||||
|
// <Text>We will do it soon</Text>
|
@ -0,0 +1,37 @@
|
|||||||
|
import Text from "@/components/ui/Text";
|
||||||
|
import React, {forwardRef} from "react";
|
||||||
|
import {Image, View, ViewProps} from "react-native";
|
||||||
|
import BackButton from "@/components/BackButton";
|
||||||
|
|
||||||
|
import {Entypo} from "@expo/vector-icons";
|
||||||
|
|
||||||
|
export interface ProblemProps extends ViewProps{
|
||||||
|
picture: string;
|
||||||
|
problem: string;
|
||||||
|
description: string;
|
||||||
|
information: string;
|
||||||
|
isVisible?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default forwardRef<any, ProblemProps> (({className, ...Props}, ref) => {
|
||||||
|
return (
|
||||||
|
<View className={"gap-4 justify-between h-3/4" + " " + className} {...Props} ref={ref}>
|
||||||
|
<View className="flex-row justify-between items-center p-4">
|
||||||
|
<BackButton/>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<View className="flex-row justify-center">
|
||||||
|
<Image className="aspect-square w-3/5 h-3/5" source={Props.picture}/>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<Text position="center" weight="bold" size="3xl"> {Props.problem} </Text>
|
||||||
|
<Text size="lg" position="center" className="text-gray-400"> {Props.description} </Text>
|
||||||
|
<View className="flex-row justify-center">
|
||||||
|
<View className="flex-row items-center border-2 rounded-2xl bg-red-300 border-red-600 p-4">
|
||||||
|
<Entypo name="warning" size={30} color="red"/>
|
||||||
|
<Text size="lg" position="center"> {Props.information} </Text>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
});
|
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 532 KiB |
After Width: | Height: | Size: 563 KiB |
After Width: | Height: | Size: 332 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 122 KiB |
@ -1,3 +1,10 @@
|
|||||||
export const EMPTY_FIELD = "Un des champs est vide !";
|
export const EMPTY_FIELD = "Un des champs est vide !";
|
||||||
export const INVALID_EMAIL = "Adresse mail invalide !";
|
export const INVALID_EMAIL = "Adresse mail invalide !";
|
||||||
export const NOT_MATCHING_PASSWORD = "Les mots de passe sont différents";
|
export const NOT_MATCHING_PASSWORD = "Les mots de passe sont différents";
|
||||||
|
|
||||||
|
export const NOT_FOUND = "Ressource introuvable :<";
|
||||||
|
export const NO_INTERNET = "Pas de connexion à internet";
|
||||||
|
export const INTERNAL_ERROR = "Erreur interne, veuillez nous pardonner";
|
||||||
|
export const MAINTENANCE = "Le serveur est en maintenance, veuillez réessayer plus tard";
|
||||||
|
export const NOT_AUTHORIZED = "Vous n'êtes pas autorisé à accéder à cette ressource";
|
||||||
|
export const FEATURE_LOCKED = "Cette fonctionnalité est verrouillée";
|
@ -0,0 +1,15 @@
|
|||||||
|
import React from "react";
|
||||||
|
import {FEATURE_LOCKED} from "@/components/Errors";
|
||||||
|
import Error from "@/app/(utility)/Error";
|
||||||
|
import blockedPict from "@/assets/images/Blocked.png";
|
||||||
|
|
||||||
|
export default function Blocked() {
|
||||||
|
return (
|
||||||
|
<Error
|
||||||
|
picture={blockedPict}
|
||||||
|
problem="Fonctionnalité bloquée"
|
||||||
|
description={FEATURE_LOCKED}
|
||||||
|
information="Devenez PREMIUM pour débloquer"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
import React from "react";
|
||||||
|
import {INTERNAL_ERROR} from "@/components/Errors";
|
||||||
|
import Error from "@/app/(utility)/Error";
|
||||||
|
import internalErrorPict from "@/assets/images/InternalError.png";
|
||||||
|
|
||||||
|
export default function InternalError() {
|
||||||
|
return (
|
||||||
|
<Error
|
||||||
|
picture={internalErrorPict}
|
||||||
|
problem="Problème interne"
|
||||||
|
description={INTERNAL_ERROR}
|
||||||
|
information="Contactez le support"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
import React from "react";
|
||||||
|
import {MAINTENANCE} from "@/components/Errors";
|
||||||
|
import Error from "@/app/(utility)/Error";
|
||||||
|
import maintenancePict from "@/assets/images/Maintenance.png";
|
||||||
|
|
||||||
|
export default function Maintenance() {
|
||||||
|
return (
|
||||||
|
<Error
|
||||||
|
picture={maintenancePict}
|
||||||
|
problem="Maintenance"
|
||||||
|
description={MAINTENANCE}
|
||||||
|
information="Revenez plus tard"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
import React from "react";
|
||||||
|
import {NO_INTERNET} from "@/components/Errors";
|
||||||
|
import Error from "@/app/(utility)/Error";
|
||||||
|
import noInternetPict from "@/assets/images/NoInternet.png";
|
||||||
|
|
||||||
|
export default function NoInternet() {
|
||||||
|
return (
|
||||||
|
<Error
|
||||||
|
picture={noInternetPict}
|
||||||
|
problem="Pas d'internet"
|
||||||
|
description={NO_INTERNET}
|
||||||
|
information="Réessayez plus tard"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
import React from "react";
|
||||||
|
import {NOT_AUTHORIZED} from "@/components/Errors";
|
||||||
|
import Error from "@/app/(utility)/Error";
|
||||||
|
import notAllowedPict from "@/assets/images/NotAllowed.png";
|
||||||
|
|
||||||
|
export default function NotAllowedProblem() {
|
||||||
|
return (
|
||||||
|
<Error
|
||||||
|
picture={notAllowedPict}
|
||||||
|
problem="Pas autorisé"
|
||||||
|
description={NOT_AUTHORIZED}
|
||||||
|
information="Connectez vous avec plus de privilèges"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
import React from "react";
|
||||||
|
import {NOT_FOUND} from "@/components/Errors";
|
||||||
|
import Error from "@/app/(utility)/Error";
|
||||||
|
import notFoundPict from "@/assets/images/NotFound.png";
|
||||||
|
|
||||||
|
export default function NotFound() {
|
||||||
|
return (
|
||||||
|
<Error
|
||||||
|
picture={notFoundPict}
|
||||||
|
problem="Introuvable"
|
||||||
|
description={NOT_FOUND}
|
||||||
|
information="Status Code : 404"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in new issue