From 7d6f49987a1845e9ff0c2aef4eb51e7729fa12c5 Mon Sep 17 00:00:00 2001 From: bicochan Date: Tue, 15 Jul 2025 12:14:41 +0900 Subject: [PATCH] =?UTF-8?q?[apps/cs,=20common/features]=20chore:=20FAQ=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20PostPageGuard=EB=A1=9C=20?= =?UTF-8?q?=EB=9E=98=ED=95=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/(post)/faq/ui/faq-page.tsx | 270 +++++++++--------- apps/cs/src/pages/(post)/faq/ui/faq-page.tsx | 269 ++++++++--------- 2 files changed, 274 insertions(+), 265 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 aa67a17c5..6255bb27a 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 @@ -20,7 +20,7 @@ import { Skeleton, } from "@common/components"; import { AttachmentApi } from "@/entities/attachment"; -import { PostApi, type PostParams } from "@/entities/post"; +import { PostApi, PostPageGuard, type PostParams } from "@/entities/post"; import { useAlertStore, useMenuStore, useUserStore } from "@/shared/lib"; import { ENDPOINT } from "@/shared/config"; import dayjs from "dayjs"; @@ -103,143 +103,147 @@ function FaqPage({ bbsId }: { bbsId: string }) { }; return ( -
-
-
- - - - setPostParams({ ...postParams, keyword: e.target.value }) - } - className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]" - /> - -
-
-
-
-
-

콘텐츠 목록

-
- {pageMenuAuthority?.regAuthrtYn === "Y" && ( - - )} - {pageMenuAuthority?.delAuthrtYn === "Y" && ( - - )} + +
+
+
+ + + + setPostParams({ ...postParams, keyword: e.target.value }) + } + className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]" + /> + +
+
+
+
+
+

콘텐츠 목록

+
+ {pageMenuAuthority?.regAuthrtYn === "Y" && ( + + )} + {pageMenuAuthority?.delAuthrtYn === "Y" && ( + + )} +
-
-
-
- e.stopPropagation()} - onCheckedChange={handleAllCheckboxChange} - /> - +
+
+ e.stopPropagation()} + onCheckedChange={handleAllCheckboxChange} + /> + +
+ {isFetched ? ( + + {postList?.content.map((item) => ( +
+ e.stopPropagation()} + onCheckedChange={(checked) => + handleCheckboxChange(item.pstNo, checked) + } + className="mx-2 my-6" + /> + + +
+
+ Q + {item.pstTtl} +
+ + 등록일: {dayjs(item.regDt).format("YYYY-MM-DD")} + +
+
+ +
+ + A + +
+
+                              {item.pstCn}
+                            
+ +
+
+ + +
+
+
+
+
+ ))} +
+ ) : ( + + )}
- {isFetched ? ( - - {postList?.content.map((item) => ( -
- e.stopPropagation()} - onCheckedChange={(checked) => - handleCheckboxChange(item.pstNo, checked) - } - className="mx-2 my-6" - /> - - -
-
- Q - {item.pstTtl} -
- - 등록일: {dayjs(item.regDt).format("YYYY-MM-DD")} - -
-
- -
- - A - -
-
-                            {item.pstCn}
-                          
- -
-
- - -
-
-
-
-
- ))} -
- ) : ( - - )}
-
+
); } diff --git a/apps/cs/src/pages/(post)/faq/ui/faq-page.tsx b/apps/cs/src/pages/(post)/faq/ui/faq-page.tsx index 8ddd3006a..f23a70663 100644 --- a/apps/cs/src/pages/(post)/faq/ui/faq-page.tsx +++ b/apps/cs/src/pages/(post)/faq/ui/faq-page.tsx @@ -23,6 +23,7 @@ import { import { AttachmentApi } from "@/entities/attachment"; import { PostApi, + PostPageGuard, deleteReasonMessages, type PostParams, } from "@/entities/post"; @@ -120,143 +121,147 @@ function FaqPage({ bbsId }: { bbsId: string }) { }; return ( -
-
-
- - - - setPostParams({ ...postParams, keyword: e.target.value }) - } - className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]" - /> - -
-
-
-
-
-

콘텐츠 목록

-
- router.push(`${pathname}/register`)} - > - 등록 - - - 선택삭제 - + +
+
+
+ + + + setPostParams({ ...postParams, keyword: e.target.value }) + } + className="h-[3.2rem] w-[24rem] rounded-sm !text-[1.3rem]" + /> + +
+
+
+
+
+

콘텐츠 목록

+
+ router.push(`${pathname}/register`)} + > + 등록 + + + 선택삭제 + +
-
-
-
- e.stopPropagation()} - onCheckedChange={handleAllCheckboxChange} - /> - +
+
+ e.stopPropagation()} + onCheckedChange={handleAllCheckboxChange} + /> + +
+ {isFetched ? ( + + {postList?.content.map((item) => ( +
+ e.stopPropagation()} + onCheckedChange={(checked) => + handleCheckboxChange(item.pstNo, checked) + } + className="mx-2 my-6" + /> + + +
+
+ Q + {item.pstTtl} +
+ + 등록일: {dayjs(item.regDt).format("YYYY-MM-DD")} + +
+
+ +
+ + A + +
+
+                              {item.pstCn}
+                            
+ +
+
+ + +
+
+
+
+
+ ))} +
+ ) : ( + + )}
- {isFetched ? ( - - {postList?.content.map((item) => ( -
- e.stopPropagation()} - onCheckedChange={(checked) => - handleCheckboxChange(item.pstNo, checked) - } - className="mx-2 my-6" - /> - - -
-
- Q - {item.pstTtl} -
- - 등록일: {dayjs(item.regDt).format("YYYY-MM-DD")} - -
-
- -
- - A - -
-
-                            {item.pstCn}
-                          
- -
-
- - -
-
-
-
-
- ))} -
- ) : ( - - )}
-
+
); }