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 {
children: React.ReactNode;

View File

@ -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 (
<div className="h-full flex flex-col">
<WorkspaceHeader />
<PlaygroundHeader />
<ResizablePanelGroup direction="horizontal" className="p-2.5 pt-0">
<ResizablePanel
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 {
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";
interface PlaygroundLayoutProps {
@ -14,7 +14,7 @@ export default function PlaygroundLayout({
}: PlaygroundLayoutProps) {
return (
<div className="h-screen flex flex-col">
<WorkspaceHeader />
<PlaygroundHeader />
<main className="flex flex-grow overflow-y-hidden p-2.5 pt-0">
<ResizablePanelGroup direction="horizontal" className="relative h-full flex">
<ResizablePanel defaultSize={50} className="border border-muted rounded-3xl">

View File

@ -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 = () => {