refactor(frontend): optimize useDialogs logic

This commit is contained in:
yassinedorbozgithub
2025-02-09 01:45:35 +01:00
parent 90a7c55646
commit f4a438b9dd
19 changed files with 19 additions and 83 deletions

View File

@@ -98,11 +98,7 @@ export const MenuForm: FC<ComponentFormProps<MenuFormData>> = ({
}, [reset, data?.row]);
return (
<Wrapper
open={!!WrapperProps?.open}
onSubmit={handleSubmit(onSubmitForm)}
{...WrapperProps}
>
<Wrapper onSubmit={handleSubmit(onSubmitForm)} {...WrapperProps}>
<form onSubmit={handleSubmit(onSubmitForm)}>
<ContentContainer>
<ContentContainer flexDirection="row">