From 0f4d06dd1a990857cc444aa693b5df2939f8c207 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Mon, 23 Nov 2026 03:43:34 +0900 Subject: [PATCH] Remove unused ShopDropCard component --- knip.jsonc | 1 - src/components/shop/ShopDropCard.tsx | 65 ---------------------------- 2 files changed, 66 deletions(-) delete mode 100644 src/components/shop/ShopDropCard.tsx diff --git a/knip.jsonc b/knip.jsonc index cf1229bd9..bdd7a407c 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -57,7 +57,6 @@ "src/components/landing/LandingCodeExampleCard.tsx", "src/components/landing/codeExamples.ts", "src/components/npm-stats/index.ts", - "src/components/shop/ShopDropCard.tsx", "src/hooks/useQueryGGPPPDiscount.ts", "src/libraries/cli.tsx", "src/libraries/config.tsx", diff --git a/src/components/shop/ShopDropCard.tsx b/src/components/shop/ShopDropCard.tsx deleted file mode 100644 index ddc271f3a..000000000 --- a/src/components/shop/ShopDropCard.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import { Link } from '@tanstack/react-router' -import { ShopLabel, ShopMono, ShopPanel, ShopPulse } from './ui' - -export type DropCardRow = { label: string; value: string } - -type Props = { - /** Top-row label, e.g. "Shop now — free US shipping over $75". */ - status: string - /** Display headline inside the card. */ - headline: string - /** Rows of key/value copy (dashed dividers between). */ - rows?: Array - /** Primary CTA. */ - cta: { label: string; href: string } - /** Optional sub-line below the CTA (e.g. countdown or fine print). */ - ctaSub?: React.ReactNode -} - -/** - * Live-drop / promo card in the shop hero. Pulses green, leads with a - * display-type headline, prices out a few stats, and drops a CTA at the foot. - */ -export function ShopDropCard({ status, headline, rows, cta, ctaSub }: Props) { - return ( - - - - {status} - -
- {headline} -
- {rows?.map((row) => ( -
- {row.label} - - {row.value} - -
- ))} - - {cta.label} - - → - - - {ctaSub ? ( - - {ctaSub} - - ) : null} -
- ) -}