From 2a65f4cc002886ebf112fcd540e12b41836c2010 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Mon, 23 Nov 2026 03:26:55 +0900 Subject: [PATCH] Remove unused FrameworkIconTabs component --- knip.jsonc | 1 - src/components/FrameworkIconTabs.tsx | 57 ---------------------------- 2 files changed, 58 deletions(-) delete mode 100644 src/components/FrameworkIconTabs.tsx diff --git a/knip.jsonc b/knip.jsonc index 1a61fa857..ddd66abc2 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -31,7 +31,6 @@ "src/components/BlogAuthorFilter.tsx", "src/components/BottomCTA.tsx", "src/components/DocFeedbackContext.tsx", - "src/components/FrameworkIconTabs.tsx", "src/components/Gam.tsx", "src/components/LandingCommunitySection.tsx", "src/components/LandingPageGad.tsx", diff --git a/src/components/FrameworkIconTabs.tsx b/src/components/FrameworkIconTabs.tsx deleted file mode 100644 index 642f97fbb..000000000 --- a/src/components/FrameworkIconTabs.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import * as React from 'react' -import { twMerge } from 'tailwind-merge' -import type { Framework } from '~/libraries' -import { getFrameworkOptions } from '~/libraries/frameworks' - -type FrameworkIconTabsProps = { - frameworks: Framework[] - value: Framework - onChange: (framework: Framework) => void - className?: string -} - -export function FrameworkIconTabs({ - frameworks, - value, - onChange, - className, -}: FrameworkIconTabsProps) { - const options = React.useMemo( - () => getFrameworkOptions(frameworks), - [frameworks], - ) - - // Not a real tablist: these buttons don't switch a tab panel, they swap the - // StackBlitz embed via `onChange`. So this is a labeled group of toggle - // buttons (`aria-pressed`) rather than tabs — each button is individually - // Tab-focusable, no roving tabindex needed. - return ( -
- {options.map((opt) => ( - - ))} -
- ) -}