This commit is contained in:
Malai Raja
2023-11-27 19:09:26 +05:30
parent 7113ac0681
commit b3371d3bc0
20 changed files with 3176 additions and 2314 deletions

View File

@@ -15,7 +15,7 @@ import Transitions from 'components/@extended/Transitions';
import IconButton from 'components/@extended/IconButton';
import { ThemeMode } from 'config';
import useAuth from 'hooks/useAuth';
// import useAuth from 'hooks/useAuth';
// assets
import avatar1 from 'assets/images/users/avatar-1.png';
@@ -49,7 +49,7 @@ const Profile = () => {
const theme = useTheme();
const navigate = useNavigate();
const { logout, user } = useAuth();
// const { logout, user } = useAuth();
const handleLogout = async () => {
try {
await logout();
@@ -105,7 +105,9 @@ const Profile = () => {
>
<Stack direction="row" spacing={2} alignItems="center" sx={{ p: 0.5 }}>
<Avatar alt="profile user" src={avatar1} size="xs" />
<Typography variant="subtitle1">{user?.name}</Typography>
<Typography variant="subtitle1">
{/* {user?.name} */}
</Typography>
</Stack>
</ButtonBase>
<Popper
@@ -147,7 +149,9 @@ const Profile = () => {
<Stack direction="row" spacing={1.25} alignItems="center">
<Avatar alt="profile user" src={avatar1} sx={{ width: 32, height: 32 }} />
<Stack>
<Typography variant="h6">{user?.name}</Typography>
<Typography variant="h6">
{/* {user?.name} */}
</Typography>
<Typography variant="body2" color="textSecondary">
UI/UX Designer
</Typography>