Update Add user hospital portal
This commit is contained in:
@@ -8,6 +8,8 @@ import { IconButtonAnimate } from '@/components/animate';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import useAuth from '@/hooks/useAuth';
|
||||
|
||||
import { getUser } from '@/utils/token';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const MENU_OPTIONS = [
|
||||
@@ -45,6 +47,8 @@ export default function AccountPopover() {
|
||||
navigate('/auth/login');
|
||||
};
|
||||
|
||||
const userString = getUser();
|
||||
const storedUser = userString ? JSON.parse(userString) : null;
|
||||
return (
|
||||
<>
|
||||
<IconButtonAnimate
|
||||
@@ -89,7 +93,7 @@ export default function AccountPopover() {
|
||||
Hospital Admin
|
||||
</Typography>
|
||||
<Typography variant="body2" sx={{ color: 'text.secondary' }} noWrap>
|
||||
hospitaladmin@gmail.com
|
||||
{storedUser?.email}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user