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