parent
c352c2c10a
commit
8f89549737
@ -0,0 +1,28 @@
|
||||
import Text from "@/components/ui/Text";
|
||||
import React, {forwardRef} from "react";
|
||||
import {Image, View, ViewProps} from "react-native";
|
||||
import BackButton from "@/components/BackButton";
|
||||
|
||||
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-full" + " " + className} {...Props} ref={ref}>
|
||||
<View className="flex-row justify-between items-center p-4">
|
||||
<BackButton/>
|
||||
</View>
|
||||
|
||||
<Image source={Props.picture}/>
|
||||
<Text position="center" weight="bold" size="3xl"> {Props.problem} </Text>
|
||||
<Text size="lg" position="center"> {Props.description} </Text>
|
||||
|
||||
<Text size="lg" position="center"> {Props.information} </Text>
|
||||
</View>
|
||||
);
|
||||
});
|
After Width: | Height: | Size: 122 KiB |
@ -1,3 +1,10 @@
|
||||
export const EMPTY_FIELD = "Un des champs est vide !";
|
||||
export const INVALID_EMAIL = "Adresse mail invalide !";
|
||||
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 {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