Skip to content

Commit

Permalink
Merge pull request #167 from ssu-student-union/feat/#148_jongse_qa_3
Browse files Browse the repository at this point in the history
공지사항 게시글 new 추가
  • Loading branch information
jongse7 authored Sep 26, 2024
2 parents 0f6fd50 + dd2a3b3 commit ec72e51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/PostCard/PostCardBasicMissing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface PostCardProps {
title?: string;
subtitle?: string;
date?: string;
badgeType?: string;
badgeType?: 'Emergency' | 'New' | 'Default';
cardType: 'Basic' | 'Missing';
size?: Size;
profileImg?: string | null;
Expand Down
6 changes: 3 additions & 3 deletions src/pages/notice/component/NoticeContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ export function NoticeContent({ initPosts, isLoading }: NoticeContentProps) {

function RenderCard({ post, size }: RenderCardProps) {
const formattedDate = post.date ? formatYYYYMMDD(post.date) : '';
let status;
if (status === '긴급공지') {
let status: 'Emergency' | 'New' | 'Default';
if (post.status === '긴급공지') {
status = 'Emergency';
} else if (status === '새로운') {
} else if (post.status === '새로운') {
status = 'New';
} else {
status = 'Default';
Expand Down

0 comments on commit ec72e51

Please sign in to comment.