Skip to content

Commit

Permalink
Admin 페이지에 NoContent 컴포넌트 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ryusudol committed Nov 1, 2023
1 parent 68f78b5 commit 06f33b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
13 changes: 0 additions & 13 deletions front-end/components/Admin/notices-manage/NoticeGenerate.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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]"
>
제출
업로드
</button>
</form>
</div>
Expand All @@ -87,3 +90,5 @@ const NoticeWritingPage = ({ onCancelClick, notice }: PropsType) => {
};

export default NoticeWritingPage;

// Todo: 공지사항 섹션에서 수정 버튼 클릭 시 기존 정보 기록된 채로 화면 띄울 것
16 changes: 3 additions & 13 deletions front-end/components/Admin/user-ranking/UserRanking.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import React from 'react';
import Image from 'next/image';

import NoContent from '@components/NoContent';

const UserRanking = () => {
return (
<div className="w-full">
<div className="flex flex-col items-center justify-center w-full h-full bg-white">
<div className="shadow-xl text-white bg-[var(--color-mrgreen-5)] rounded-lg text-2xl py-4 px-6 mb-10">
User Ranking Section은 아직 활성화되지 않았습니다.
</div>
<Image
className="opacity-25"
src={'/images/confucian.jpeg'}
width={500}
height={500}
alt="Maple img"
/>
</div>
<NoContent text="User Ranking Section은 아직 활성화되지 않았습니다." />
</div>
);
};
Expand Down

0 comments on commit 06f33b1

Please sign in to comment.