xóa hình mặt định
This commit is contained in:
parent
5554be97e0
commit
d7c7e56fc7
|
|
@ -362,7 +362,7 @@ const Navbar = ({
|
|||
}}
|
||||
>
|
||||
<Avatar
|
||||
src={user.user.avatarUrl || '/public/backgroundLogin.png'}
|
||||
src={user.user.avatarUrl || ''}
|
||||
alt="User Avatar"
|
||||
size={60}
|
||||
radius="xl"
|
||||
|
|
|
|||
|
|
@ -13,13 +13,14 @@ import {
|
|||
Table,
|
||||
Text,
|
||||
TextInput,
|
||||
Title
|
||||
Title,
|
||||
} from '@mantine/core'
|
||||
import { notifications } from '@mantine/notifications'
|
||||
import { IconCornerDownRight, IconPasswordUser } from '@tabler/icons-react'
|
||||
import { useCallback, useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import classes from './Profile.module.css'
|
||||
|
||||
interface TableRow {
|
||||
// Add properties for each column in the table
|
||||
criteria: string
|
||||
|
|
@ -230,6 +231,7 @@ const Profile = () => {
|
|||
},
|
||||
}))
|
||||
}
|
||||
console.log(user, 'user')
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
@ -253,7 +255,7 @@ const Profile = () => {
|
|||
}}
|
||||
>
|
||||
<Avatar
|
||||
src={null || '/public/backgroundLogin.png'}
|
||||
src={null || ''}
|
||||
alt="User Avatar"
|
||||
size={150}
|
||||
// radius="xl"
|
||||
|
|
@ -276,6 +278,7 @@ const Profile = () => {
|
|||
mb="md"
|
||||
readOnly
|
||||
style={{ pointerEvents: 'none' }}
|
||||
value={user.user.name}
|
||||
/>
|
||||
<TextInput
|
||||
label="Email"
|
||||
|
|
@ -284,19 +287,22 @@ const Profile = () => {
|
|||
mb="md"
|
||||
readOnly
|
||||
style={{ pointerEvents: 'none' }}
|
||||
value={user.user.email}
|
||||
/>
|
||||
<TextInput
|
||||
label="Join Date"
|
||||
type="date"
|
||||
type="text"
|
||||
mb="md"
|
||||
readOnly
|
||||
style={{ pointerEvents: 'none' }}
|
||||
value={user.user.createdAt}
|
||||
/>
|
||||
<TextInput
|
||||
label="Permission(s)"
|
||||
placeholder="Permissions"
|
||||
readOnly
|
||||
style={{ pointerEvents: 'none' }}
|
||||
value={user.user.permission}
|
||||
/>
|
||||
</Box>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue