Update Revisi Hospital Portal

This commit is contained in:
ivan-sim
2024-01-05 16:54:54 +07:00
parent 7d729f295b
commit f9075b2bd2
11 changed files with 169 additions and 72 deletions

View File

@@ -41,8 +41,8 @@ export default function LoginForm() {
});
const defaultValues = {
email: 'hospitaladmin@gmail.com',
password: 'password',
email: '',
password: '',
remember: true,
};

View File

@@ -58,8 +58,12 @@ export default function FormRequestClaim({ member, handleSubmitSuccess }: FormRe
.post('/request-log', formData)
.then((response) => {
if (response && response.data && response.data.meta) {
setTimeout(() => {
window.location.reload();
}, 1500);
enqueueSnackbar(response.data.meta.message, { variant: 'success' });
handleSubmitSuccess();
}
})
.catch(({ response }) => {
@@ -176,7 +180,7 @@ export default function FormRequestClaim({ member, handleSubmitSuccess }: FormRe
<Card sx={{ p: 1, background: '#f4f6f8'}}>
<Stack direction="row">
<Avatar
src="https://minimal-assets-api.vercel.app/assets/images/avatars/avatar_5.jpg"
src=""
alt={member?.members.name ?? ''}
sx={{ marginTop: 1, width: 48, height: 48 }}
/>