diff --git a/app/page.tsx b/app/page.tsx
index 670f317..2674fd6 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -11,11 +11,17 @@ export default async function Home() {
take: 3,
});
+ // Convert Date objects to strings for serialization
+ const serializedEvents = events.map((event) => ({
+ ...event,
+ date: event.date.toISOString(),
+ }));
+
return (
-
+
);
}
diff --git a/components/EventsSection.tsx b/components/EventsSection.tsx
index e912c45..3bee3ed 100644
--- a/components/EventsSection.tsx
+++ b/components/EventsSection.tsx
@@ -25,7 +25,11 @@ export default function EventsSection({ events }: EventsSectionProps) {
- {event.date}
+ {new Date(event.date).toLocaleDateString("fr-FR", {
+ day: "numeric",
+ month: "long",
+ year: "numeric",
+ })}
{event.name}
diff --git a/components/Navigation.tsx b/components/Navigation.tsx
index c26d49f..a72e355 100644
--- a/components/Navigation.tsx
+++ b/components/Navigation.tsx
@@ -80,12 +80,6 @@ export default function Navigation({
{isAuthenticated ? (
<>
-
- PROFIL
-