Skip to content

Commit 2350efe

Browse files
committed
fix(web): wrap admin layout in ConsoleShell
1 parent bb471fd commit 2350efe

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

apps/web/src/app/admin/layout.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import { ConsoleShell } from "@/components/console/shell";
12
import { isAdmin } from "@/lib/admin";
23
import { apiRequest, getSessionFromCookies } from "@/lib/api";
4+
import { TopbarProvider } from "@/lib/topbar-context";
35
import type { Account } from "@/lib/types";
46
import { redirect } from "next/navigation";
7+
import "@/styles/console.css";
58

69
export default async function AdminLayout({
710
children,
@@ -20,5 +23,9 @@ export default async function AdminLayout({
2023
redirect("/");
2124
}
2225

23-
return <>{children}</>;
26+
return (
27+
<TopbarProvider>
28+
<ConsoleShell>{children}</ConsoleShell>
29+
</TopbarProvider>
30+
);
2431
}

0 commit comments

Comments
 (0)