Refactor event date handling in EventsSection and PlayerStats components: Serialize event dates for consistent formatting and update date display to use localized string representation. Remove profile link from Navigation and integrate it into PlayerStats for improved user experience.

This commit is contained in:
Julien Froidefond
2025-12-10 05:49:44 +01:00
parent a6c329ff15
commit 95e580aff6
4 changed files with 33 additions and 24 deletions

View File

@@ -25,7 +25,11 @@ export default function EventsSection({ events }: EventsSectionProps) {
<div className="w-16 h-px bg-pixel-gold"></div>
</div>
<div className="text-white text-lg font-bold mb-2 uppercase tracking-wide">
{event.date}
{new Date(event.date).toLocaleDateString("fr-FR", {
day: "numeric",
month: "long",
year: "numeric",
})}
</div>
<div className="text-white text-base text-center">
{event.name}