From a78431fb613c96db166a432fe9b5b67406931a79 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sat, 8 Mar 2025 21:16:57 +0800 Subject: [PATCH] fix(playground): update file path --- .../playground/@problem/@description/layout.tsx | 2 +- src/app/(app)/playground/layout.tsx | 4 ++-- .../problems/[id]/@problem/@description/layout.tsx | 2 +- src/app/(app)/problems/[id]/layout.tsx | 4 ++-- .../playground/header.tsx} | 12 ++++++------ 5 files changed, 12 insertions(+), 12 deletions(-) rename src/{components/workspace-header.tsx => features/playground/header.tsx} (81%) diff --git a/src/app/(app)/playground/@problem/@description/layout.tsx b/src/app/(app)/playground/@problem/@description/layout.tsx index d839592..d685c49 100644 --- a/src/app/(app)/playground/@problem/@description/layout.tsx +++ b/src/app/(app)/playground/@problem/@description/layout.tsx @@ -1,4 +1,4 @@ -import ProblemDescriptionFooter from "@/features/workspace/problem/description/footer"; +import ProblemDescriptionFooter from "@/features/playground/problem/description/footer"; interface ProblemDescriptionLayoutProps { children: React.ReactNode; diff --git a/src/app/(app)/playground/layout.tsx b/src/app/(app)/playground/layout.tsx index 838d71d..7355e31 100644 --- a/src/app/(app)/playground/layout.tsx +++ b/src/app/(app)/playground/layout.tsx @@ -3,7 +3,7 @@ import { ResizablePanel, ResizablePanelGroup, } from "@/components/ui/resizable"; -import { WorkspaceHeader } from "@/components/workspace-header"; +import { PlaygroundHeader } from "@/features/playground/header"; interface PlaygroundLayoutProps { problem: React.ReactNode; @@ -16,7 +16,7 @@ export default function PlaygroundLayout({ }: PlaygroundLayoutProps) { return (
- + - +
diff --git a/src/components/workspace-header.tsx b/src/features/playground/header.tsx similarity index 81% rename from src/components/workspace-header.tsx rename to src/features/playground/header.tsx index c8004e7..77b8996 100644 --- a/src/components/workspace-header.tsx +++ b/src/features/playground/header.tsx @@ -2,18 +2,18 @@ import { cn } from "@/lib/utils"; import { useState } from "react"; -import RunCode from "./run-code"; -import SettingsButton from "./settings-button"; -import { SettingsDialog } from "./settings-dialog"; +import RunCode from "@/components/run-code"; +import SettingsButton from "@/components/settings-button"; +import { SettingsDialog } from "@/components/settings-dialog"; -interface WorkspaceHeaderProps { +interface PlaygroundHeaderProps { className?: string; } -export function WorkspaceHeader({ +export function PlaygroundHeader({ className, ...props -}: WorkspaceHeaderProps) { +}: PlaygroundHeaderProps) { const [isDialogOpen, setDialogOpen] = useState(false); const toggleDialog = () => {