From cfb04631c30b8ea9c85e4c9f05c8fcf4a240c13c Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Mon, 23 Nov 2026 02:50:47 +0900 Subject: [PATCH] Remove unused TocMobile component --- knip.jsonc | 1 - src/components/TocMobile.tsx | 55 ------------------------------------ 2 files changed, 56 deletions(-) delete mode 100644 src/components/TocMobile.tsx diff --git a/knip.jsonc b/knip.jsonc index 9b24f0888..dbf281abc 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -56,7 +56,6 @@ "src/components/StackBlitzEmbed.tsx", "src/components/StackBlitzSection.tsx", "src/components/Style.tsx", - "src/components/TocMobile.tsx", "src/components/UserFeedbackSection.tsx", "src/components/application-starter/CustomAddonDialog.tsx", "src/components/application-starter/CustomTemplateDialog.tsx", diff --git a/src/components/TocMobile.tsx b/src/components/TocMobile.tsx deleted file mode 100644 index c29164bb3..000000000 --- a/src/components/TocMobile.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import React from 'react' -import { Link } from '@tanstack/react-router' -import type { MarkdownHeading } from '~/utils/markdown' -import { CaretDownIcon, CaretRightIcon } from '@phosphor-icons/react' - -interface TocMobileProps { - headings: Array -} - -export function TocMobile({ headings }: TocMobileProps) { - const [isOpen, setIsOpen] = React.useState(false) - - const handleToggle = (event: React.SyntheticEvent) => { - setIsOpen(event.currentTarget.open) - } - - if (headings.length === 0) { - return null - } - - return ( -
-
- - {isOpen ? : } - On this page - -
-
    - {headings.map((heading) => ( -
  • - ]+(>|$)/g, '')} - /> -
  • - ))} -
-
-
-
- ) -}