fix(playground): update file path

This commit is contained in:
cfngc4594 2025-03-08 21:16:57 +08:00
parent c6ffc41d2f
commit a78431fb61
5 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
import ProblemDescriptionFooter from "@/features/workspace/problem/description/footer"; import ProblemDescriptionFooter from "@/features/playground/problem/description/footer";
interface ProblemDescriptionLayoutProps { interface ProblemDescriptionLayoutProps {
children: React.ReactNode; children: React.ReactNode;

View File

@ -3,7 +3,7 @@ import {
ResizablePanel, ResizablePanel,
ResizablePanelGroup, ResizablePanelGroup,
} from "@/components/ui/resizable"; } from "@/components/ui/resizable";
import { WorkspaceHeader } from "@/components/workspace-header"; import { PlaygroundHeader } from "@/features/playground/header";
interface PlaygroundLayoutProps { interface PlaygroundLayoutProps {
problem: React.ReactNode; problem: React.ReactNode;
@ -16,7 +16,7 @@ export default function PlaygroundLayout({
}: PlaygroundLayoutProps) { }: PlaygroundLayoutProps) {
return ( return (
<div className="h-full flex flex-col"> <div className="h-full flex flex-col">
<WorkspaceHeader /> <PlaygroundHeader />
<ResizablePanelGroup direction="horizontal" className="p-2.5 pt-0"> <ResizablePanelGroup direction="horizontal" className="p-2.5 pt-0">
<ResizablePanel <ResizablePanel
defaultSize={50} defaultSize={50}

View File

@ -1,4 +1,4 @@
import ProblemDescriptionFooter from "@/features/workspace/problem/description/footer"; import ProblemDescriptionFooter from "@/features/playground/problem/description/footer";
interface ProblemDescriptionLayoutProps { interface ProblemDescriptionLayoutProps {
children: React.ReactNode; children: React.ReactNode;

View File

@ -1,4 +1,4 @@
import { WorkspaceHeader } from "@/components/workspace-header"; import { PlaygroundHeader } from "@/features/playground/header";
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable"; import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable";
interface PlaygroundLayoutProps { interface PlaygroundLayoutProps {
@ -14,7 +14,7 @@ export default function PlaygroundLayout({
}: PlaygroundLayoutProps) { }: PlaygroundLayoutProps) {
return ( return (
<div className="h-screen flex flex-col"> <div className="h-screen flex flex-col">
<WorkspaceHeader /> <PlaygroundHeader />
<main className="flex flex-grow overflow-y-hidden p-2.5 pt-0"> <main className="flex flex-grow overflow-y-hidden p-2.5 pt-0">
<ResizablePanelGroup direction="horizontal" className="relative h-full flex"> <ResizablePanelGroup direction="horizontal" className="relative h-full flex">
<ResizablePanel defaultSize={50} className="border border-muted rounded-3xl"> <ResizablePanel defaultSize={50} className="border border-muted rounded-3xl">

View File

@ -2,18 +2,18 @@
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { useState } from "react"; import { useState } from "react";
import RunCode from "./run-code"; import RunCode from "@/components/run-code";
import SettingsButton from "./settings-button"; import SettingsButton from "@/components/settings-button";
import { SettingsDialog } from "./settings-dialog"; import { SettingsDialog } from "@/components/settings-dialog";
interface WorkspaceHeaderProps { interface PlaygroundHeaderProps {
className?: string; className?: string;
} }
export function WorkspaceHeader({ export function PlaygroundHeader({
className, className,
...props ...props
}: WorkspaceHeaderProps) { }: PlaygroundHeaderProps) {
const [isDialogOpen, setDialogOpen] = useState(false); const [isDialogOpen, setDialogOpen] = useState(false);
const toggleDialog = () => { const toggleDialog = () => {