Add database and Prisma configurations, enhance event and leaderboard components with API integration, and update navigation for session management

This commit is contained in:
Julien Froidefond
2025-12-09 08:24:14 +01:00
parent f57a30eb4d
commit 4486f305f2
41 changed files with 9094 additions and 167 deletions

View File

@@ -0,0 +1,16 @@
"use client";
import { SessionProvider as NextAuthSessionProvider } from "next-auth/react";
export default function SessionProvider({
children,
}: {
children: React.ReactNode;
}) {
return (
<NextAuthSessionProvider basePath="/api/auth">
{children}
</NextAuthSessionProvider>
);
}