mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-170): change Cancel button to Reset in RecordingForm for improved form handling
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user