From 7ddcfb630d3dec3d9fecbfd6a498ca7c572809ec Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 1 Mar 2024 23:17:27 +0000 Subject: feature: Add an admin page showing server stats and actions --- packages/web/lib/providers.tsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'packages/web/lib/providers.tsx') diff --git a/packages/web/lib/providers.tsx b/packages/web/lib/providers.tsx index d14d4d96..0c721c1e 100644 --- a/packages/web/lib/providers.tsx +++ b/packages/web/lib/providers.tsx @@ -6,8 +6,16 @@ import { api } from "./trpc"; import { loggerLink } from "@trpc/client"; import { httpBatchLink } from "@trpc/client"; import superjson from "superjson"; +import { SessionProvider } from "next-auth/react"; +import { Session } from "next-auth"; -export default function Providers({ children }: { children: React.ReactNode }) { +export default function Providers({ + children, + session, +}: { + children: React.ReactNode; + session: Session | null; +}) { const [queryClient] = React.useState(() => new QueryClient()); const [trpcClient] = useState(() => @@ -28,8 +36,12 @@ export default function Providers({ children }: { children: React.ReactNode }) { ); return ( - - {children} - + + + + {children} + + + ); } -- cgit v1.2.3-70-g09d2