From 930e6bd46fb0b0246fab4ccc335826ae263cfd5e Mon Sep 17 00:00:00 2001 From: Henry Li Date: Sat, 24 Jan 2026 18:48:35 +0800 Subject: [PATCH] feat: remove background --- .../workspace/chats/[thread_id]/layout.tsx | 40 +------------------ 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/frontend/src/app/workspace/chats/[thread_id]/layout.tsx b/frontend/src/app/workspace/chats/[thread_id]/layout.tsx index 8b9bdaf..744493e 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/layout.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/layout.tsx @@ -1,10 +1,5 @@ "use client"; -import { usePathname } from "next/navigation"; -import { useTheme } from "next-themes"; -import { useMemo } from "react"; - -import { FlickeringGrid } from "@/components/ui/flickering-grid"; import { ArtifactsProvider } from "@/components/workspace/artifacts"; export default function ChatLayout({ @@ -12,38 +7,5 @@ export default function ChatLayout({ }: { children: React.ReactNode; }) { - const pathname = usePathname(); - const isNewThread = useMemo(() => { - return pathname === "/workspace/chats/new"; - }, [pathname]); - const { resolvedTheme } = useTheme(); - return ( - - {isNewThread && ( - <> - - - - )} - {children} - - ); + return {children}; }