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