refactor(problem): remove TestResult tab and adjust tab positions

This commit is contained in:
cfngc4594 2025-04-14 16:25:10 +08:00
parent d58723bd47
commit 69d03f89da
2 changed files with 0 additions and 21 deletions

View File

@ -12,7 +12,6 @@ interface ProblemProps {
Details: React.ReactNode; Details: React.ReactNode;
Code: React.ReactNode; Code: React.ReactNode;
Testcase: React.ReactNode; Testcase: React.ReactNode;
TestResult: React.ReactNode;
Bot: React.ReactNode; Bot: React.ReactNode;
} }
@ -24,7 +23,6 @@ export default async function ProblemLayout({
Details, Details,
Code, Code,
Testcase, Testcase,
TestResult,
Bot, Bot,
}: ProblemProps) { }: ProblemProps) {
const { id } = await params; const { id } = await params;
@ -79,7 +77,6 @@ export default async function ProblemLayout({
Details={Details} Details={Details}
Code={Code} Code={Code}
Testcase={Testcase} Testcase={Testcase}
TestResult={TestResult}
Bot={Bot} Bot={Bot}
/> />
</main> </main>

View File

@ -7,7 +7,6 @@ import {
FlaskConicalIcon, FlaskConicalIcon,
SquareCheckIcon, SquareCheckIcon,
SquarePenIcon, SquarePenIcon,
TerminalIcon,
} from "lucide-react"; } from "lucide-react";
import Dockview from "@/components/dockview"; import Dockview from "@/components/dockview";
import { useDockviewStore } from "@/stores/dockview"; import { useDockviewStore } from "@/stores/dockview";
@ -19,7 +18,6 @@ interface ProblemPageProps {
Details: React.ReactNode; Details: React.ReactNode;
Code: React.ReactNode; Code: React.ReactNode;
Testcase: React.ReactNode; Testcase: React.ReactNode;
TestResult: React.ReactNode;
Bot: React.ReactNode; Bot: React.ReactNode;
} }
@ -30,7 +28,6 @@ export default function ProblemPage({
Details, Details,
Code, Code,
Testcase, Testcase,
TestResult,
Bot, Bot,
}: ProblemPageProps) { }: ProblemPageProps) {
const { setApi } = useDockviewStore(); const { setApi } = useDockviewStore();
@ -118,21 +115,6 @@ export default function ProblemPage({
direction: "below", direction: "below",
}, },
}, },
{
id: "TestResult",
component: "TestResult",
tabComponent: "TestResult",
title: "Test Result",
params: {
icon: TerminalIcon,
content: TestResult,
},
position: {
referencePanel: "Testcase",
direction: "within",
},
inactive: true,
},
{ {
id: "Bot", id: "Bot",
component: "Bot", component: "Bot",