mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
fix(playground): update file path
This commit is contained in:
parent
c6ffc41d2f
commit
a78431fb61
@ -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;
|
||||
|
@ -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}
|
||||
|
@ -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;
|
||||
|
@ -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">
|
||||
|
@ -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 = () => {
|
Loading…
Reference in New Issue
Block a user