From c41058dae91944d148e3ab5d95111bc91a314369 Mon Sep 17 00:00:00 2001 From: bicochan Date: Fri, 9 May 2025 17:51:07 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20=EB=8C=93=EA=B8=80=20=EA=B0=AF=EC=88=98=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/src/entities/post/model/post-interface.ts | 1 + .../src/widgets/post/model/post-table-columns.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/common/features/src/entities/post/model/post-interface.ts b/apps/common/features/src/entities/post/model/post-interface.ts index fb77b2c43..9cb97ef92 100644 --- a/apps/common/features/src/entities/post/model/post-interface.ts +++ b/apps/common/features/src/entities/post/model/post-interface.ts @@ -28,6 +28,7 @@ export interface Post { atflCd: string; regDt: string; rgtrNm: string; + cmntCnt: number; } export interface PostInfo extends Post { diff --git a/apps/common/features/src/widgets/post/model/post-table-columns.tsx b/apps/common/features/src/widgets/post/model/post-table-columns.tsx index e892b5d82..862538896 100644 --- a/apps/common/features/src/widgets/post/model/post-table-columns.tsx +++ b/apps/common/features/src/widgets/post/model/post-table-columns.tsx @@ -47,12 +47,12 @@ export const columns: ColumnDef[] = [ accessorKey: "pstTtl", header: "제목", cell: ({ row }) => { - const { ansPstn, pstTtl, inqNocs } = row.original; + const { ansPstn, pstTtl, inqNocs, cmntCnt } = row.original; return (
{ansPstn > 0 && (
@@ -67,6 +67,12 @@ export const columns: ColumnDef[] = [ NEW )} {pstTtl} + {cmntCnt > 0 && ( +
+ + {cmntCnt} +
+ )}
); },