Skip to content

Commit

Permalink
1.4.2 regular updates (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 authored Feb 19, 2024
1 parent 14681e1 commit ee856a0
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 131 deletions.
14 changes: 7 additions & 7 deletions components/common/delete.confirm.modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const DeleteConfirmModal = (props: any) => {
const [open, setOpen] = useState(props.open)

const handleDelete = async () => {
try {
await PoPoAxios.delete(`/${deleteURI}`,
{ withCredentials: true })
PoPoAxios.delete(`/${deleteURI}`, { withCredentials: true })
.then(() => {
window.location.reload()
} catch (e) {
alert('삭제에 실패했습니다.')
console.log(e)
}
})
.catch((err) => {
const errMsg = err.response.data.message;
alert(`삭제에 실패했습니다.\n${errMsg}`);
})
}

return (
Expand Down
2 changes: 1 addition & 1 deletion components/notice/notice.panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const NoticePanel = ({
</div>
{
notice.image_url ? (
<Image src={notice.image_url}/>
<Image src={notice.image_url} alt={notice.title}/>
) : null
}
</NoticeCard>
Expand Down
Loading

0 comments on commit ee856a0

Please sign in to comment.