mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
refactor(playground): rename description to problem and update routes
This commit is contained in:
parent
484bc6bc6e
commit
0ad1f24c7a
@ -2,11 +2,11 @@ import { FileTextIcon } from "lucide-react";
|
||||
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
||||
|
||||
interface DescriptionLayoutProps {
|
||||
interface ProblemLayoutProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export default function DescriptionLayout({ children }: DescriptionLayoutProps) {
|
||||
export default function ProblemLayout({ children }: ProblemLayoutProps) {
|
||||
return (
|
||||
<Tabs defaultValue="description" className="h-full flex flex-col">
|
||||
<ScrollArea className="h-9 flex-none bg-muted px-1">
|
@ -5,18 +5,18 @@ import {
|
||||
} from "@/components/ui/resizable";
|
||||
|
||||
interface PlaygroundLayoutProps {
|
||||
description: React.ReactNode;
|
||||
problem: React.ReactNode;
|
||||
workspace: React.ReactNode;
|
||||
}
|
||||
|
||||
export default function PlaygroundLayout({
|
||||
description,
|
||||
problem,
|
||||
workspace,
|
||||
}: PlaygroundLayoutProps) {
|
||||
return (
|
||||
<ResizablePanelGroup direction="horizontal" className="p-2.5 pt-0">
|
||||
<ResizablePanel defaultSize={50} className="border border-muted rounded-2xl">
|
||||
{description}
|
||||
{problem}
|
||||
</ResizablePanel>
|
||||
<ResizableHandle
|
||||
withHandle
|
||||
|
Loading…
Reference in New Issue
Block a user