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} +
+ )}
); },