A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix(web): Only show demo mode banner in demo mode
MohamedBassemd9d67250c85a
diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsxindex b79fd0f9..50c7cc60 100644--- a/apps/web/app/dashboard/layout.tsx+++ b/apps/web/app/dashboard/layout.tsx@@ -4,6 +4,8 @@ import UploadDropzone from "@/components/dashboard/UploadDropzone";import DemoModeBanner from "@/components/DemoModeBanner";import { Separator } from "@/components/ui/separator";+import serverConfig from "@hoarder/shared/config";+export default async function Dashboard({children,}: Readonly<{@@ -15,7 +17,7 @@ export default async function Dashboard({<Sidebar /></div><main className="flex-1 bg-gray-100 sm:overflow-y-auto">- <DemoModeBanner />+ {serverConfig.demoMode && <DemoModeBanner />}<div className="block w-full sm:hidden"><MobileSidebar /><Separator />