From d220b6776389c6a27fe998c2a26a38f8d9330c86 Mon Sep 17 00:00:00 2001 From: bluehorn07 Date: Sun, 10 Dec 2023 20:47:45 +0900 Subject: [PATCH] update notices table --- components/board/notice/notice.table.jsx | 33 ++++++++++++++---------- pages/board/notice/index.jsx | 5 +++- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/components/board/notice/notice.table.jsx b/components/board/notice/notice.table.jsx index 16611f5..fb8f6b3 100644 --- a/components/board/notice/notice.table.jsx +++ b/components/board/notice/notice.table.jsx @@ -1,6 +1,6 @@ import Link from 'next/link' import moment from 'moment' -import { Image, Table } from 'semantic-ui-react' +import { Table } from 'semantic-ui-react' const NoticeTable = ({notices}) => { @@ -11,12 +11,12 @@ const NoticeTable > - id. - 제목 - 내용 - 이미지 - 게시 일자 - 클릭수 + id. + 제목 + 내용 + {/* 이미지 */} + 게시 일자 + 클릭수 @@ -28,18 +28,23 @@ const NoticeTable {idx + 1} - - {notice.title} - + { + notice.link ? ( + + {notice.title} + + ) : notice.title + } - + {notice.content} - + {/* - + */} - {moment(notice.start_datetime).format('YYYY-MM-DD HH:mm')} ~ {moment(notice.end_datetime).format('YYYY-MM-DD HH:mm')} ({Number(duration/24).toFixed(0)}일 {duration%24}시간) + {moment(notice.start_datetime).format('YYYY-MM-DD HH:mm')} ~ {moment(notice.end_datetime).format('YYYY-MM-DD HH:mm')}
+ ({Number(duration/24).toFixed(0)}일 {duration%24}시간)
{notice.click_count} diff --git a/pages/board/notice/index.jsx b/pages/board/notice/index.jsx index 823cc89..a5acf56 100644 --- a/pages/board/notice/index.jsx +++ b/pages/board/notice/index.jsx @@ -17,7 +17,10 @@ const AnnouncementPage = ({ noticeList }) => { 공지사항은 빠른 게시 시작 일자로 정렬되어 표시됩니다! - 이미지가 업로드 되지 않은 공지는 생성되어도 게시되지 않습니다. + + + + 기능 개발이 계속 이뤄지고 있습니다.