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

View File

@ -7,7 +7,6 @@ import {
FlaskConicalIcon,
SquareCheckIcon,
SquarePenIcon,
TerminalIcon,
} from "lucide-react";
import Dockview from "@/components/dockview";
import { useDockviewStore } from "@/stores/dockview";
@ -19,7 +18,6 @@ interface ProblemPageProps {
Details: React.ReactNode;
Code: React.ReactNode;
Testcase: React.ReactNode;
TestResult: React.ReactNode;
Bot: React.ReactNode;
}
@ -30,7 +28,6 @@ export default function ProblemPage({
Details,
Code,
Testcase,
TestResult,
Bot,
}: ProblemPageProps) {
const { setApi } = useDockviewStore();
@ -118,21 +115,6 @@ export default function ProblemPage({
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",
component: "Bot",