This commit is contained in:
Laux Dev
2026-03-06 09:10:10 +08:00
parent 278c256805
commit 9b23841876
2 changed files with 4 additions and 1 deletions

View File

@@ -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();
}}
/>

View File

@@ -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}>