From a7799af2f4ea5b119cb9c2fd00507de3d96e1837 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sat, 8 Mar 2025 21:11:18 +0800 Subject: [PATCH] refactor(layout): rename WorkspaceLayout to PlaygroundLayout and modify props --- src/app/(app)/problems/[id]/layout.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/(app)/problems/[id]/layout.tsx b/src/app/(app)/problems/[id]/layout.tsx index 0e22364..9b39207 100644 --- a/src/app/(app)/problems/[id]/layout.tsx +++ b/src/app/(app)/problems/[id]/layout.tsx @@ -1,17 +1,17 @@ import { WorkspaceHeader } from "@/components/workspace-header"; import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable"; -interface WorkspaceLayoutProps { +interface PlaygroundLayoutProps { problem: React.ReactNode; - editor: React.ReactNode; + workspace: React.ReactNode; terminal: React.ReactNode; } -export default function WorkspaceLayout({ +export default function PlaygroundLayout({ problem, - editor, + workspace, terminal, -}: WorkspaceLayoutProps) { +}: PlaygroundLayoutProps) { return (
@@ -24,7 +24,7 @@ export default function WorkspaceLayout({ - {editor} + {workspace}