mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-10 10:43:32 +08:00
为成员字段增加了头像
This commit is contained in:
@@ -6,10 +6,12 @@ const User = ({
|
||||
id,
|
||||
username = '',
|
||||
email = '',
|
||||
avatar = '',
|
||||
}: {
|
||||
id?: string;
|
||||
username?: string;
|
||||
email?: string;
|
||||
avatar?: string;
|
||||
}) => {
|
||||
return (
|
||||
<Stack>
|
||||
@@ -26,6 +28,7 @@ const User = ({
|
||||
<Stack direction={'row'} alignItems={'center'} gap={1}>
|
||||
<Avatar
|
||||
name={username}
|
||||
src={avatar}
|
||||
sx={{ width: 20, height: 20, fontSize: 12 }}
|
||||
/>
|
||||
<Typography sx={{ pt: '2px' }}>{username}</Typography>
|
||||
|
||||
Reference in New Issue
Block a user