set admin behind a cookie and check role on profile
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// app/layout.tsx
|
||||
import "./globals.css";
|
||||
import type { ReactNode } from "react";
|
||||
import Script from "next/script";
|
||||
|
||||
import { AuthProvider } from "@/context/AuthContext";
|
||||
import { Banner } from "@/components/Banner";
|
||||
|
||||
@@ -38,6 +40,9 @@ export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
|
||||
<body className="bg-dark text-zinc-950 dark:bg-black dark:text-zinc-50">
|
||||
{" "}
|
||||
<Script src="https://umami.ash.gofwd.group/script.js" data-website-id="ad310b4a-aa5e-471a-938b-47a6c0f4108d"
|
||||
strategy="lazyOnload"
|
||||
/>
|
||||
<AuthProvider>
|
||||
<Banner />
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user