Skip to content

Commit

Permalink
πŸ› μ•Œλ¦Ό 전솑 기둝이 없을 λ•Œ 잘λͺ» ν‘œμ‹œλ˜λ˜ 문제 μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
junah201 committed Jun 7, 2024
1 parent 291d90a commit ba5c5b7
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions frontend/src/pages/Guild/NotiList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,27 @@ const Noti = ({ noti }: NotiProps) => {
#{noti.channel_name}
</Link>
</TableCell>
<TableCell align="center">
<Tooltip
title={dayjs(noti.last_noti_at).format('YYYY-MM-DD HH:mm:ss')}
placement="top"
>
<Typography>{fromNow(noti.last_noti_at)}</Typography>
</Tooltip>
<Typography
color={
noti.last_noti_status === 'SUCCESS' ? 'primary.main' : 'error.main'
}
>
{noti.last_noti_status}
</Typography>
</TableCell>
{noti.last_noti_at ? (
<TableCell align="center">
<Tooltip
title={dayjs(noti.last_noti_at).format('YYYY-MM-DD HH:mm:ss')}
placement="top"
>
<Typography>{fromNow(noti.last_noti_at)}</Typography>
</Tooltip>
<Typography
color={
noti.last_noti_status === 'SUCCESS'
? 'primary.main'
: 'error.main'
}
>
{noti.last_noti_status}
</Typography>
</TableCell>
) : (
<TableCell></TableCell>
)}
<TableCell align="center">
<TestButton chzzk_id={chzzk} channel_id={noti.channel_id} />
</TableCell>
Expand Down

0 comments on commit ba5c5b7

Please sign in to comment.