diff --git a/app/(tabs)/(exercice)/ExerciceScreen.tsx b/app/(tabs)/(exercice)/ExerciceScreen.tsx
deleted file mode 100644
index e72b0f5..0000000
--- a/app/(tabs)/(exercice)/ExerciceScreen.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import {FlatList, Text, View} from "react-native";
-import React from "react";
-import HeaderProfileComponent from "@/components/HeaderProfileComponent";
-import Screen from "@/components/ui/Screen";
-import WorkoutCardComponent from "@/components/WorkoutCardComponent";
-import {useSession} from "@/ctx";
-import {Workout} from "@/model/Workout";
-
-export default function ExerciceScreen() {
- const [text, onChangeText] = React.useState("");
- const exercise = [new Workout("Développé couché", 25,"8 Series Workout", 412, "assets/images/Sigma-2.png","Intense" ),
- new Workout("Curl halterné", 30, "8 Series Workout", 342, "assets/images/Sigma.jpg","Medium" ),
- new Workout("Tirage Vertival", 29, "8 Series Workout", 793, "assets/images/Sigma.jpg","Easy" )];
-
- return (
-
-
-
-
-
-
-
- Séance du jour
-
-
- >
- }
- data={exercise}
- className="h-full"
- renderItem={({ item }: { item: Workout }) =>
-
-
-
- }
- />
-
- );
-}
\ No newline at end of file
diff --git a/app/+not-found.tsx b/app/+not-found.tsx
index 04514bf..dcac0d4 100644
--- a/app/+not-found.tsx
+++ b/app/+not-found.tsx
@@ -1,55 +1,18 @@
-import React from "react";
-import {
- Image,
- SafeAreaView,
- StatusBar,
- Text,
- TouchableOpacity,
- View,
-} from "react-native";
+import {Link, router, Stack, usePathname, useRouter} from 'expo-router';
+import {Button, StyleSheet, Text, View} from 'react-native';
-export default function NotFoundScreen() {
- return (
-
-
-
- {/* Back Button Area */}
-
- ⟨
-
-
- {/* Main Content */}
-
- {/* Magnifying Glass Image */}
-
- {/* Error Text */}
- Not Found
-
- {/* Error Message */}
-
- Whoops! Coach S can't find this page :(
-
-
- {/* Status Code */}
-
-
- :warning: Status Code: 404
-
-
+export default function NotFoundScreen() {
+ const pathname = usePathname();
+ const router = useRouter();
- {/* Home Button */}
-
-
- Take Me Home
-
-
+ return (
+ <>
+
+
+ This screen {pathname} doesn't exist: {pathname}
+
);
diff --git a/components/WorkoutCardComponent.tsx b/components/WorkoutCardComponent.tsx
index 5dbb49e..8bc119b 100644
--- a/components/WorkoutCardComponent.tsx
+++ b/components/WorkoutCardComponent.tsx
@@ -2,7 +2,6 @@ import { Workout } from "@/model/Workout";
import { AntDesign, MaterialCommunityIcons } from "@expo/vector-icons";
import { useRouter } from "expo-router";
import React from "react";
-import { ImageBackground, Text, TouchableOpacity, View } from "react-native";
interface WorkoutCardComponentProps {
exercise?: Workout;
@@ -20,7 +19,7 @@ export default function WorkoutCardComponent({
};
const styleImage = () => {
- return `w-full h `;
+ return `w-full h-full `;
};
const router = useRouter();
return (