mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-08-03 09:00:23 +00:00
add admin checks for admin pages and run biome formating 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 11m8s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 11m8s
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
"use client"
|
||||
"use client";
|
||||
|
||||
import type { Session } from "next-auth"
|
||||
import { SessionProvider } from "next-auth/react"
|
||||
import type { Session } from "next-auth";
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode
|
||||
session?: Session
|
||||
}
|
||||
children: React.ReactNode;
|
||||
session?: Session;
|
||||
};
|
||||
|
||||
export const AuthProvider = ({ children, session }: Props) => {
|
||||
return <SessionProvider session={session}>{children}</SessionProvider>
|
||||
}
|
||||
return <SessionProvider session={session}>{children}</SessionProvider>;
|
||||
};
|
||||
|
Reference in New Issue
Block a user