This commit is contained in:
2024-05-06 11:16:04 +07:00
parent 5dd0f24af9
commit 9d79118e47

View File

@@ -341,7 +341,7 @@ export default function AppointmentForm({ isEdit, id, currentAppointment }: Prop
.catch((response) => {
enqueueSnackbar(response.message, { variant: 'error' });
});
}
}
return (
<FormProvider methods={methods} onSubmit={handleSubmit(onSubmit)}>
@@ -652,7 +652,7 @@ export default function AppointmentForm({ isEdit, id, currentAppointment }: Prop
<Grid item xs={12} md={12} sx={{ display: 'flex', justifyContent: 'flex-end' }}>
<Button
sx={{ boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)', marginRight: '10px' }}
onClick={handleDownloadEPrescription(id)}
onClick={() => handleDownloadEPrescription(id)}
variant="contained"
size="large"
>