为成员字段增加了头像

This commit is contained in:
Monster
2025-07-15 14:58:30 +08:00
parent eabb311f73
commit 973dde26d5
7 changed files with 9 additions and 0 deletions

View File

@@ -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>