refactor(frontend): update nlpSample formDialog

This commit is contained in:
yassinedorbozgithub
2025-02-06 01:55:52 +01:00
parent 28a6fccaa7
commit 0cb2f5ff6b
6 changed files with 105 additions and 79 deletions

View File

@@ -25,9 +25,11 @@ export const FormDialog = ({
<Dialog fullWidth {...rest}>
<DialogTitle onClose={handleClose}>{title}</DialogTitle>
<DialogContent>{children}</DialogContent>
<DialogActions style={{ padding: "0.5rem" }}>
<DialogFormButtons onCancel={handleClose} onSubmit={onSubmit} />
</DialogActions>
{rest.hasButtons === false ? null : (
<DialogActions style={{ padding: "0.5rem" }}>
<DialogFormButtons onCancel={handleClose} onSubmit={onSubmit} />
</DialogActions>
)}
</Dialog>
);
};