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' && ( {type === 'edit' && (
<> <>
<Button <Button
type='button' type='reset'
color='error' color='warning'
onClick={() => router.push('/production/recording')}
className='px-4' className='px-4'
onClick={(e) => {
formik.handleReset(e);
formik.validateForm();
}}
> >
Cancel Reset
</Button> </Button>
<Button <Button
type='submit' type='submit'