Skip to content

Commit

Permalink
[Feat] : 날짜 표시 방식 사용자가 보기 좋게 수정 #677
Browse files Browse the repository at this point in the history
  • Loading branch information
raehy19 committed Feb 27, 2023
1 parent cc561bb commit f8fd5f2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions components/admin/announcement/AnnounceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,14 @@ export default function AnnounceList() {
</TableCell>
) : (
<TableCell className={styles.tableBodyItem} key={index}>
{announcement[
columnName as keyof IAnnouncement
]?.toString()}
{columnName === 'createdTime' ||
columnName === 'deletedTime'
? announcement[columnName as keyof IAnnouncement]
?.toString()
.replace('T', ' ')
: announcement[
columnName as keyof IAnnouncement
]?.toString()}
</TableCell>
);
}
Expand Down

0 comments on commit f8fd5f2

Please sign in to comment.