Mes évènements
+{`Bonjour {Prénom} !`}
+Créations
+Facile
++ {phisicalDificulty} +
Intermédiaire
+{cluesDificulty}
{journey.title}
{journey.description}
-{journey.description}
+{journey.steps[0].city}
diff --git a/src/components/JourneysFeed.tsx b/src/components/JourneysFeed.tsx index 7fc5fe8..447f7c1 100644 --- a/src/components/JourneysFeed.tsx +++ b/src/components/JourneysFeed.tsx @@ -2,18 +2,17 @@ import { getAllJourneys } from "@/services/journeyService"; import { handleException } from "@/utils/errorHandlerUtils"; import JourneyCard from "./JourneyCard"; -async function getData() { +async function getAllData() { try { const result = await getAllJourneys(); return result; } catch (error: any) { - console.log(error, "error"); handleException(error); } } const JourneysFeed = async () => { - const journeys = await getData(); + const journeys = await getAllData(); if (!journeys) return; return ( <> diff --git a/src/components/MobileNav.tsx b/src/components/Nav.tsx similarity index 91% rename from src/components/MobileNav.tsx rename to src/components/Nav.tsx index bbc0660..4aa4c01 100644 --- a/src/components/MobileNav.tsx +++ b/src/components/Nav.tsx @@ -4,11 +4,11 @@ import React from "react"; import { Icons } from "./Icons"; import { usePathname } from "next/navigation"; -const MobileNav = () => { +const Nav = () => { const currentPath = usePathname(); const isMainPage = currentPath === "/" || currentPath === ""; return ( -