From 69d03f89da9b2c18864ac5e2d3cc75c4a99cedab Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Mon, 14 Apr 2025 16:25:10 +0800 Subject: [PATCH] refactor(problem): remove TestResult tab and adjust tab positions --- src/app/(app)/problems/[id]/layout.tsx | 3 --- src/app/(app)/problems/[id]/page.tsx | 18 ------------------ 2 files changed, 21 deletions(-) diff --git a/src/app/(app)/problems/[id]/layout.tsx b/src/app/(app)/problems/[id]/layout.tsx index 2cfb80c..558c043 100644 --- a/src/app/(app)/problems/[id]/layout.tsx +++ b/src/app/(app)/problems/[id]/layout.tsx @@ -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} /> diff --git a/src/app/(app)/problems/[id]/page.tsx b/src/app/(app)/problems/[id]/page.tsx index 9bacf17..9425abc 100644 --- a/src/app/(app)/problems/[id]/page.tsx +++ b/src/app/(app)/problems/[id]/page.tsx @@ -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",