Skip to content

Commit

Permalink
[modify] 이벤트 수정 완료시 해당 이벤트 상세페이지로 이동하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
lybell-art committed Aug 19, 2024
1 parent e3934e5 commit e67a139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adminPage/features/eventEdit/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ function EventEditor({ initialData = null } = {}) {
onSuccess: () => {
openModal(
<AlertModal
title="등록 완료"
title={`${mode === "create" ? "등록" : "수정"} 완료`}
description={`이벤트가 성공적으로 ${mode === "create" ? "등록" : "수정"}되었습니다!`}
/>,
);
navigate("/events");
navigate(mode === "create" ? "/events" : `/events/${state.eventId}`);
},
onError: (e) => {
openModal(<AlertModal title="등록 실패" description={e.message} />);
Expand Down

0 comments on commit e67a139

Please sign in to comment.