From 484ae7bf9d058a0816dd8c73bdc68c629dd909e2 Mon Sep 17 00:00:00 2001 From: maaz519 Date: Sat, 20 Jun 2026 17:15:21 +0530 Subject: [PATCH] fix: add OrgAdminProvider to root layout /org/login was throwing "useOrgAdmin must be used within " because the provider was never mounted in the app shell. Co-Authored-By: Claude Sonnet 4.6 --- apps/web/app/layout.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index d8bb845..1d57641 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -3,6 +3,7 @@ import Link from 'next/link'; import './globals.css'; import { AuthProvider } from './_lib/auth-context'; import { SuperAdminProvider } from './_lib/super-admin-context'; +import { OrgAdminProvider } from './_lib/org-admin-context'; import { Sidebar } from './_lib/sidebar'; export const metadata: Metadata = { @@ -16,8 +17,10 @@ export default function RootLayout({ children }: { children: React.ReactNode }) - -
{children}
+ + +
{children}
+