feat(FE-170): change Cancel button to Reset in RecordingForm for improved form handling

This commit is contained in:
rstubryan
2025-11-07 08:51:54 +07:00
parent f8f613ec9d
commit 2e35462300
@@ -2534,12 +2534,15 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
{type === 'edit' && (
<>
<Button
type='button'
color='error'
onClick={() => router.push('/production/recording')}
type='reset'
color='warning'
className='px-4'
onClick={(e) => {
formik.handleReset(e);
formik.validateForm();
}}
>
Cancel
Reset
</Button>
<Button
type='submit'