From 8e327f52e20335df14bead1de5cd435a72ffbf74 Mon Sep 17 00:00:00 2001 From: hyeseong Date: Sun, 30 Nov 2025 17:25:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix(termsDetail):=20=EA=B4=80=EB=A0=A8?= =?UTF-8?q?=EC=9A=A9=EC=96=B4=20=ED=83=AD=20=20=EB=A6=AC=ED=8C=A9=ED=86=A0?= =?UTF-8?q?=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../term-detail/tabs/RelatedTab.tsx | 43 +------------------ 1 file changed, 2 insertions(+), 41 deletions(-) diff --git a/src/components/term-detail/tabs/RelatedTab.tsx b/src/components/term-detail/tabs/RelatedTab.tsx index fac7600..fca00fd 100644 --- a/src/components/term-detail/tabs/RelatedTab.tsx +++ b/src/components/term-detail/tabs/RelatedTab.tsx @@ -1,10 +1,8 @@ "use client"; -import { useState, useEffect } from "react"; import { useRouter } from "next/navigation"; import { cn } from "@/utils/cn"; -import type { TermDetail, TermIndexItem } from "@/lib/terms"; -import { getRelatedTerms } from "@/lib/terms"; +import type { TermIndexItem } from "@/lib/terms"; import { RelationIcon, HashtagIcon, @@ -16,11 +14,10 @@ import { getCategoryType } from "@/lib/category"; import { useScrapToggle } from "@/hooks/useScrapToggle"; interface RelatedTabProps { - term: TermDetail; relatedTerms: TermIndexItem[]; } -export function RelatedTab({ term, relatedTerms }: RelatedTabProps) { +export function RelatedTab({ relatedTerms }: RelatedTabProps) { return (
@@ -37,11 +34,6 @@ export function RelatedTab({ term, relatedTerms }: RelatedTabProps) { ) : (

연관 용어가 없습니다.

)} - - {/* Confusable Terms */} - {term.confusableIds && term.confusableIds.length > 0 && ( - - )}
); } @@ -144,34 +136,3 @@ function RelatedTermCard({ term }: { term: TermIndexItem }) { ); } - -// Confusable Terms -function ConfusableTerms({ ids }: { ids: number[] }) { - const router = useRouter(); - const [terms, setTerms] = useState([]); - - useEffect(() => { - getRelatedTerms(ids).then(setTerms); - }, [ids]); - - if (terms.length === 0) return null; - - return ( -
-

헷갈리기 쉬운 용어

-
    - {terms.map((t) => ( -
  • - -
  • - ))} -
-
- ); -} From 98fc940033d8de083d5dc4c3ff1d436fc8c11598 Mon Sep 17 00:00:00 2001 From: hyeseong Date: Sun, 30 Nov 2025 17:28:50 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EB=B9=8C=EB=93=9C=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/term-detail/TabSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/term-detail/TabSection.tsx b/src/components/term-detail/TabSection.tsx index 043752d..3dd8a31 100644 --- a/src/components/term-detail/TabSection.tsx +++ b/src/components/term-detail/TabSection.tsx @@ -26,7 +26,7 @@ export function TabSection({ term, relatedTerms }: TabSectionProps) { {activeTab === "description" && } {activeTab === "usecase" && } {activeTab === "related" && ( - + )}