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

@@ -15,10 +15,10 @@ const MENU_OPTIONS = [
label: 'Home',
linkTo: '/',
},
{
label: 'Profile',
linkTo: '/profile',
},
// {
// label: 'Profile',
// linkTo: '/profile',
// },
// {
// label: 'Settings',
// linkTo: '/',
@@ -65,8 +65,8 @@ export default function AccountPopover() {
}}
>
<Avatar
src="https://minimal-assets-api.vercel.app/assets/images/avatars/avatar_5.jpg"
alt="Rayan Moran"
src=""
alt="Hospital Portal"
/>
</IconButtonAnimate>

View File

@@ -88,7 +88,7 @@ export default function DashboardHeader({
</IconButtonAnimate>
)}
<Searchbar />
{/* <Searchbar /> */}
<Box sx={{ flexGrow: 1 }} />
<Stack direction="row" alignItems="center" spacing={{ xs: 0.5, sm: 1.5 }}>

View File

@@ -6,6 +6,9 @@ import { DocIllustration } from '@/assets';
// ----------------------------------------------------------------------
export default function NavbarDocs() {
const handleClick = () => {
window.location.href = 'https://wa.me/6285890008500';
};
return (
<>
<Stack
@@ -20,12 +23,12 @@ export default function NavbarDocs() {
</Typography>
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
Need help?
<br /> Please check our docs
<br /> Please contact Us at
</Typography>
</div>
<Button variant="contained">Documentation</Button>
<Typography variant='body2'>Hak Cipta © 2023 - 2024 Link Sehat</Typography>
<Button variant="contained" onClick={handleClick}>WhatsApp</Button>
<Typography variant='body2'>Hak Cipta © 2023 - 2024 LinkSehat</Typography>
</Stack>
</>
);

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 }}
/>