fixed
This commit is contained in:
@@ -9,6 +9,9 @@ const Alert = (props) => {
|
|||||||
setHide(true);
|
setHide(true);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
props.setTriggerAlert(false);
|
props.setTriggerAlert(false);
|
||||||
|
if (props?.editState) {
|
||||||
|
props?.setEditState(false);
|
||||||
|
}
|
||||||
}, 250);
|
}, 250);
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
@@ -32,7 +35,6 @@ const Alert = (props) => {
|
|||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
text="Confirm"
|
text="Confirm"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props?.setEditState(false);
|
|
||||||
handleHide();
|
handleHide();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ const TopHeader = (props) => {
|
|||||||
setEditState={setEditState}
|
setEditState={setEditState}
|
||||||
title={!editState ? props.topbarTitle : "Save Changes"}
|
title={!editState ? props.topbarTitle : "Save Changes"}
|
||||||
body="You are about to save the changes. Do you want to continue?"
|
body="You are about to save the changes. Do you want to continue?"
|
||||||
|
editState={editState}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
|
|||||||
Reference in New Issue
Block a user