add clear history add dialog

This commit is contained in:
Wikzyy
2025-03-16 20:27:31 +07:00
parent d13775090b
commit 2f0c76574e
4 changed files with 24 additions and 0 deletions

View File

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