refactor(playground): rename description to problem and update routes

This commit is contained in:
cfngc4594 2025-02-24 19:16:31 +08:00
parent 484bc6bc6e
commit 0ad1f24c7a
3 changed files with 5 additions and 5 deletions

View File

@ -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">

View File

@ -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