Skip to content

Commit

Permalink
feat: alert 등록
Browse files Browse the repository at this point in the history
  • Loading branch information
SujinKim1127 committed Jan 12, 2024
1 parent 9ce7e80 commit d45eb68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ const Home = () => {
};

const TumblogEnroll = async () => {
setImgSrc(null);
setFile(null);
try {
await axios.post("/tumbles/1", {
createdAt: receiptData.orderedAt,
Expand All @@ -95,6 +97,7 @@ const Home = () => {
size: receiptData.size,
});
setIsOpen(false);
alert("등록되었습니다.");
} catch (err) {
console.error(err);
}
Expand Down Expand Up @@ -255,7 +258,6 @@ const Home = () => {
<ButtonBox
onClick={(e) => {
handleEnroll(e);
alert("등록되었습니다.");
}}
>
<Button text={"다음"}></Button>
Expand Down

0 comments on commit d45eb68

Please sign in to comment.