Profile: follower and following counts
All checks were successful
/ depoly (push) Successful in 1m20s

This commit is contained in:
thislight 2024-11-06 19:25:21 +08:00
parent 4aac0381ae
commit 1526e4b2fe
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -23,6 +23,7 @@ import {
IconButton, IconButton,
ListItemAvatar, ListItemAvatar,
ListItemIcon, ListItemIcon,
ListItemSecondaryAction,
ListItemText, ListItemText,
MenuItem, MenuItem,
Toolbar, Toolbar,
@ -38,8 +39,8 @@ import {
PlaylistAdd, PlaylistAdd,
Send, Send,
Share, Share,
SmartToy,
SmartToySharp, SmartToySharp,
Subject,
Translate, Translate,
Verified, Verified,
} from "@suid/icons-material"; } from "@suid/icons-material";
@ -295,7 +296,23 @@ const Profile: Component = () => {
<ListItemIcon> <ListItemIcon>
<Group /> <Group />
</ListItemIcon> </ListItemIcon>
<ListItemText>Subscribers</ListItemText> <ListItemText>Followers</ListItemText>
<ListItemSecondaryAction>
<span aria-label="The number of the account follower">
{profile()?.followersCount ?? ""}
</span>
</ListItemSecondaryAction>
</MenuItem>
<MenuItem disabled>
<ListItemIcon>
<Subject />
</ListItemIcon>
<ListItemText>Following</ListItemText>
<ListItemSecondaryAction>
<span aria-label="The number the account following">
{profile()?.followingCount ?? ""}
</span>
</ListItemSecondaryAction>
</MenuItem> </MenuItem>
<MenuItem disabled> <MenuItem disabled>
<ListItemIcon> <ListItemIcon>
@ -303,12 +320,6 @@ const Profile: Component = () => {
</ListItemIcon> </ListItemIcon>
<ListItemText>Blocklist</ListItemText> <ListItemText>Blocklist</ListItemText>
</MenuItem> </MenuItem>
<MenuItem disabled>
<ListItemIcon>
<Translate />
</ListItemIcon>
<ListItemText>Translate Name and Bio...</ListItemText>
</MenuItem>
<MenuItem disabled> <MenuItem disabled>
<ListItemIcon> <ListItemIcon>
<Send /> <Send />