diff --git a/app/(tabs)/(add)/AddScreen.tsx b/app/(tabs)/(add)/AddScreen.tsx index e420054..04f5310 100644 --- a/app/(tabs)/(add)/AddScreen.tsx +++ b/app/(tabs)/(add)/AddScreen.tsx @@ -1,13 +1,16 @@ import {SafeAreaView, View, Text} from "react-native"; import React from "react"; +import InternalError from "@/components/error/InternalErrorProblem"; export default function AddScreen() { return ( - Welcome to Add Screen - We will do it soon + ); -} \ No newline at end of file +} + +//Welcome to Add Screen +// We will do it soon \ No newline at end of file diff --git a/app/(tabs)/(help)/HelpsScreen.tsx b/app/(tabs)/(help)/HelpsScreen.tsx index 2832f43..c478b22 100644 --- a/app/(tabs)/(help)/HelpsScreen.tsx +++ b/app/(tabs)/(help)/HelpsScreen.tsx @@ -1,14 +1,12 @@ import {SafeAreaView, Text, View} from "react-native"; import React from "react"; -import Error, {ProblemProps} from "@/app/(utility)/Error"; -import NotFound from "@/components/error/NotFoundProblem"; -import {NOT_FOUND} from "@/components/Errors"; +import Blocked from "@/components/error/BlockedProblem"; export default function HelpsScreen() { return ( - + diff --git a/app/(utility)/Error.tsx b/app/(utility)/Error.tsx index 78de8a0..259cedb 100644 --- a/app/(utility)/Error.tsx +++ b/app/(utility)/Error.tsx @@ -3,6 +3,8 @@ 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; @@ -13,16 +15,23 @@ export interface ProblemProps extends ViewProps{ export default forwardRef (({className, ...Props}, ref) => { return ( - + - - {Props.problem} - {Props.description} + + + - {Props.information} + {Props.problem} + {Props.description} + + + + {Props.information} + + ); }); \ No newline at end of file diff --git a/assets/images/Blocked.png b/assets/images/Blocked.png new file mode 100644 index 0000000..eed9be7 Binary files /dev/null and b/assets/images/Blocked.png differ diff --git a/assets/images/InternalError.png b/assets/images/InternalError.png new file mode 100644 index 0000000..cc5854b Binary files /dev/null and b/assets/images/InternalError.png differ diff --git a/assets/images/Maintenance.png b/assets/images/Maintenance.png new file mode 100644 index 0000000..4d35432 Binary files /dev/null and b/assets/images/Maintenance.png differ diff --git a/assets/images/NoInternet.png b/assets/images/NoInternet.png new file mode 100644 index 0000000..19be02a Binary files /dev/null and b/assets/images/NoInternet.png differ diff --git a/assets/images/NotAllowed.png b/assets/images/NotAllowed.png new file mode 100644 index 0000000..be1ebf4 Binary files /dev/null and b/assets/images/NotAllowed.png differ diff --git a/components/error/BlockedProblem.tsx b/components/error/BlockedProblem.tsx new file mode 100644 index 0000000..be92d2a --- /dev/null +++ b/components/error/BlockedProblem.tsx @@ -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 ( + + ); +} \ No newline at end of file diff --git a/components/error/InternalErrorProblem.tsx b/components/error/InternalErrorProblem.tsx new file mode 100644 index 0000000..371a33f --- /dev/null +++ b/components/error/InternalErrorProblem.tsx @@ -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 ( + + ); +} \ No newline at end of file diff --git a/components/error/MaintenanceProblem.tsx b/components/error/MaintenanceProblem.tsx new file mode 100644 index 0000000..f1de7f6 --- /dev/null +++ b/components/error/MaintenanceProblem.tsx @@ -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 ( + + ); +} \ No newline at end of file diff --git a/components/error/NoInternetProblem.tsx b/components/error/NoInternetProblem.tsx new file mode 100644 index 0000000..70544a7 --- /dev/null +++ b/components/error/NoInternetProblem.tsx @@ -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 ( + + ); +} \ No newline at end of file diff --git a/components/error/NotAllowedProblem.tsx b/components/error/NotAllowedProblem.tsx new file mode 100644 index 0000000..e9351db --- /dev/null +++ b/components/error/NotAllowedProblem.tsx @@ -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 ( + + ); +} \ No newline at end of file