Skip to content

Commit

Permalink
[FE] REFACT: api 요청에 대한 응답 오기 전까지 취소버튼 눌러도 아무런 동작 안하게 변경 #1680
Browse files Browse the repository at this point in the history
jnkeniaem committed Sep 9, 2024
1 parent fedbd60 commit 34a4f4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ const NotificationCardContainer = ({ alarm }: { alarm: AlarmInfo | null }) => {
};

const handleCancel = () => {
setAlarms((prev) => ({ ...prev, current: prev.original }));
!isLoading && setAlarms((prev) => ({ ...prev, current: prev.original }));
};

const handleCloseModal = () => {
@@ -94,7 +94,7 @@ const NotificationCardContainer = ({ alarm }: { alarm: AlarmInfo | null }) => {
onClick: handleSave,
fontColor: "var(--white-text-with-bg-color)",
backgroundColor: "var(--sys-main-color)",
isClickable: !isLoading,
isClickable: true,
isLoading: isLoading,
},
{

0 comments on commit 34a4f4f

Please sign in to comment.