aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app')
-rw-r--r--apps/web/app/dashboard/layout.tsx2
-rw-r--r--apps/web/app/layout.tsx4
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx
index 27e06955..b79fd0f9 100644
--- a/apps/web/app/dashboard/layout.tsx
+++ b/apps/web/app/dashboard/layout.tsx
@@ -1,6 +1,7 @@
import MobileSidebar from "@/components/dashboard/sidebar/ModileSidebar";
import Sidebar from "@/components/dashboard/sidebar/Sidebar";
import UploadDropzone from "@/components/dashboard/UploadDropzone";
+import DemoModeBanner from "@/components/DemoModeBanner";
import { Separator } from "@/components/ui/separator";
export default async function Dashboard({
@@ -14,6 +15,7 @@ export default async function Dashboard({
<Sidebar />
</div>
<main className="flex-1 bg-gray-100 sm:overflow-y-auto">
+ <DemoModeBanner />
<div className="block w-full sm:hidden">
<MobileSidebar />
<Separator />
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index 6ec9c3e4..395d7297 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -10,6 +10,8 @@ import Providers from "@/lib/providers";
import { getServerAuthSession } from "@/server/auth";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
+import { clientConfig } from "@hoarder/shared/config";
+
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
@@ -42,7 +44,7 @@ export default async function RootLayout({
return (
<html lang="en">
<body className={inter.className}>
- <Providers session={session}>
+ <Providers session={session} clientConfig={clientConfig}>
{children}
<ReactQueryDevtools initialIsOpen={false} />
</Providers>