This commit is contained in:
Raja Oktafrianto
2025-03-17 11:58:43 +07:00
parent ed7671a856
commit 19eb059354
27 changed files with 826 additions and 236 deletions

View File

@ -67,7 +67,7 @@ const AddDialog = () => {
return;
}
// doCreateSucos(e);
doCreateSucos(e);
console.log(formField);
setAlert({ show: false, message: '' });
};
@ -82,6 +82,12 @@ const AddDialog = () => {
}
}, [formattedTime]);
useEffect(() => {
if (showAddDialog === false) {
resetForm();
}
}, [showAddDialog]);
return (
<Dialog open={showAddDialog} onOpenChange={(open) => handleAddDialog(open)}>
<DialogContent className="container-fixed max-w-[768px] flex flex-col p-5 overflow-hidden">