From 008bb9d486a4755fb5eaabf0556f6e0524fa0acb Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Thu, 27 Mar 2025 08:17:54 +0000 Subject: [PATCH] refactor: Simplify Home component layout by integrating DiagramPageLayout functionality directly --- app/page.tsx | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 6e67e49..e24cde8 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -4,35 +4,28 @@ import { DrawIoEmbed } from "react-drawio"; import ChatPanel from "@/components/chat-panel"; import { DiagramProvider, useDiagram } from "@/contexts/diagram-context"; -// Internal layout component -function DiagramPageLayout({ children }: { children: React.ReactNode }) { +export default function Home() { const { drawioRef, handleDiagramExport } = useDiagram(); - return ( -
-
- -
-
{children}
-
- ); -} - -export default function Home() { return ( - - - +
+
+ +
+
+ +
+
); }