From 2790e6519bbe628c1beda496f26c24a825ffc5d0 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Mon, 16 Mar 2026 20:19:05 +0000 Subject: [PATCH] [#220] Remove unused TabNav component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No imports found across the codebase — component is dead code since the home page switched to SortDropdown in PR #215. Fixes #220 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/TabNav.tsx | 43 --------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/components/TabNav.tsx diff --git a/src/components/TabNav.tsx b/src/components/TabNav.tsx deleted file mode 100644 index 2f3ed4ac..00000000 --- a/src/components/TabNav.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import Link from "next/link"; - -export function TabNav({ - tabs, - active, - className, - basePath = "/", - extraParams, -}: { - tabs: readonly string[]; - active: string; - className?: string; - basePath?: string; - extraParams?: Record; -}) { - function buildHref(tab: string) { - const params = new URLSearchParams({ tab }); - if (extraParams) { - for (const [k, v] of Object.entries(extraParams)) { - params.set(k, v); - } - } - return `${basePath}?${params.toString()}`; - } - - return ( - - ); -}