From 49000c6140eb12ed10f76852774d579c66bc787d Mon Sep 17 00:00:00 2001 From: jcchoi Date: Fri, 2 Oct 2026 21:25:44 +0900 Subject: [PATCH] =?UTF-8?q?FAQ=20=EC=9B=B9=EC=A0=91=EA=B7=BC=EC=84=B1(?= =?UTF-8?q?=ED=88=B4=ED=8C=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/(post)/faq/ui/faq-page.tsx | 41 ++++++++++++++----- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/apps/common/features/src/pages/(post)/faq/ui/faq-page.tsx b/apps/common/features/src/pages/(post)/faq/ui/faq-page.tsx index 6fb5dc96c..5a00d3bdc 100644 --- a/apps/common/features/src/pages/(post)/faq/ui/faq-page.tsx +++ b/apps/common/features/src/pages/(post)/faq/ui/faq-page.tsx @@ -18,6 +18,9 @@ import { SelectTrigger, SelectValue, Skeleton, + Tooltip, + TooltipContent, + TooltipTrigger, } from "@common/components"; import { AttachmentApi } from "@/entities/attachment"; import { PostApi, PostPageGuard, type PostParams } from "@/entities/post"; @@ -40,6 +43,7 @@ function FaqPage({ bbsId }: { bbsId: string }) { keyword: "", }); const [selectedPostNumbers, setSelectedPostNumbers] = useState([]); + const [expandedFaqs, setExpandedFaqs] = useState([]); const { data: postList, @@ -174,6 +178,8 @@ function FaqPage({ bbsId }: { bbsId: string }) { {isFetched ? ( {postList?.content.map((item) => ( @@ -191,17 +197,30 @@ function FaqPage({ bbsId }: { bbsId: string }) { value={item.pstNo.toString()} className="w-full" > - -
-
- Q - {item.pstTtl} -
- - 등록일: {dayjs(item.regDt).format("YYYY-MM-DD")} - -
-
+ + + +
+
+ Q + {item.pstTtl} +
+ + 등록일: {dayjs(item.regDt).format("YYYY-MM-DD")} + +
+
+
+ + {expandedFaqs.includes(item.pstNo.toString()) + ? "접기" + : "펼치기"} + +