From 06f33b1baf6aec03dbb40c03c3e1970dc3fe5ff8 Mon Sep 17 00:00:00 2001 From: RSuhyeon Date: Wed, 1 Nov 2023 15:32:45 +0900 Subject: [PATCH] =?UTF-8?q?Admin=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90=20?= =?UTF-8?q?NoContent=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/notices-manage/NoticeGenerate.tsx | 13 ------------- .../Admin/notices-manage/NoticeWritingPage.tsx | 9 +++++++-- .../Admin/user-ranking/UserRanking.tsx | 16 +++------------- 3 files changed, 10 insertions(+), 28 deletions(-) delete mode 100644 front-end/components/Admin/notices-manage/NoticeGenerate.tsx diff --git a/front-end/components/Admin/notices-manage/NoticeGenerate.tsx b/front-end/components/Admin/notices-manage/NoticeGenerate.tsx deleted file mode 100644 index b059fded..00000000 --- a/front-end/components/Admin/notices-manage/NoticeGenerate.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react'; - -const NoticeGenerate = () => { - return ( -
-
-
hi
-
-
- ); -}; - -export default NoticeGenerate; diff --git a/front-end/components/Admin/notices-manage/NoticeWritingPage.tsx b/front-end/components/Admin/notices-manage/NoticeWritingPage.tsx index 4248a24d..4c676ee1 100644 --- a/front-end/components/Admin/notices-manage/NoticeWritingPage.tsx +++ b/front-end/components/Admin/notices-manage/NoticeWritingPage.tsx @@ -25,7 +25,10 @@ const NoticeWritingPage = ({ onCancelClick, notice }: PropsType) => { const { value: title } = titleRef.current; const { value: content } = contentRef.current; - if (title === '' || content === '') { + if ( + (title as string).trim() === '' || + (content as string).trim() === '' + ) { alert('제목과 내용을 모두 입력해주세요.'); return; } @@ -77,7 +80,7 @@ const NoticeWritingPage = ({ onCancelClick, notice }: PropsType) => { onClick={onSubmitClick} className="mt-8 text-xl font-semibold rounded-lg bg-[#b3df8c] py-2 px-4 shadow-lg transition hover:bg-[#b9c7ad]" > - 제출 + 업로드 @@ -87,3 +90,5 @@ const NoticeWritingPage = ({ onCancelClick, notice }: PropsType) => { }; export default NoticeWritingPage; + +// Todo: 공지사항 섹션에서 수정 버튼 클릭 시 기존 정보 기록된 채로 화면 띄울 것 diff --git a/front-end/components/Admin/user-ranking/UserRanking.tsx b/front-end/components/Admin/user-ranking/UserRanking.tsx index 79d81f16..611295e8 100644 --- a/front-end/components/Admin/user-ranking/UserRanking.tsx +++ b/front-end/components/Admin/user-ranking/UserRanking.tsx @@ -1,21 +1,11 @@ import React from 'react'; -import Image from 'next/image'; + +import NoContent from '@components/NoContent'; const UserRanking = () => { return (
-
-
- User Ranking Section은 아직 활성화되지 않았습니다. -
- Maple img -
+
); };