mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
Merge branch 'main' into narl.io
This commit is contained in:
commit
f405c2c9a2
1 file changed
+16
-8
+16
-8
@@ -285,22 +285,29 @@ const App: React.FC = () => {
|
|||||||
<>
|
<>
|
||||||
<ListItem disablePadding>
|
<ListItem disablePadding>
|
||||||
<ListItemButton component={Link} to={`/profile/${user.username}`} onClick={() => setDrawerOpen(false)}>
|
<ListItemButton component={Link} to={`/profile/${user.username}`} onClick={() => setDrawerOpen(false)}>
|
||||||
<ListItemAvatar>
|
<ListItemText
|
||||||
<Avatar src={user.avatar || undefined} sx={{ width: 32, height: 32, border: '1px solid', borderColor: 'primary.main' }}>
|
primary={t('nav.profile')}
|
||||||
{user.username.charAt(0).toUpperCase()}
|
secondary={
|
||||||
</Avatar>
|
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1, mt: 0.5 }}>
|
||||||
</ListItemAvatar>
|
<Avatar src={user.avatar || undefined} sx={{ width: 20, height: 20 }}>
|
||||||
<ListItemText primary={t('nav.profile')} secondary={user.username} />
|
{user.username.charAt(0).toUpperCase()}
|
||||||
|
</Avatar>
|
||||||
|
<Typography variant="caption" color="text.secondary">
|
||||||
|
{user.username}
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
}
|
||||||
|
/>
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem disablePadding>
|
<ListItem disablePadding>
|
||||||
<ListItemButton component={Link} to="/dashboard" onClick={() => setDrawerOpen(false)}>
|
<ListItemButton component={Link} to="/dashboard" onClick={() => setDrawerOpen(false)}>
|
||||||
<ListItemText primary={t('nav.dashboard')} sx={{ pl: 7 }} />
|
<ListItemText primary={t('nav.dashboard')} />
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem disablePadding>
|
<ListItem disablePadding>
|
||||||
<ListItemButton component={Link} to="/settings" onClick={() => setDrawerOpen(false)}>
|
<ListItemButton component={Link} to="/settings" onClick={() => setDrawerOpen(false)}>
|
||||||
<ListItemText primary={t('nav.settings')} sx={{ pl: 7 }} />
|
<ListItemText primary={t('nav.settings')} />
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
|
||||||
@@ -419,6 +426,7 @@ const App: React.FC = () => {
|
|||||||
elevation={3}
|
elevation={3}
|
||||||
sx={{ mt: 1 }}
|
sx={{ mt: 1 }}
|
||||||
>
|
>
|
||||||
|
<MenuItem component={Link} to={`/profile/${user.username}`} onClick={() => setAnchorEl(null)}>{t('nav.profile')}</MenuItem>
|
||||||
<MenuItem component={Link} to="/dashboard" onClick={() => setAnchorEl(null)}>{t('nav.dashboard')}</MenuItem>
|
<MenuItem component={Link} to="/dashboard" onClick={() => setAnchorEl(null)}>{t('nav.dashboard')}</MenuItem>
|
||||||
<MenuItem component={Link} to="/settings" onClick={() => setAnchorEl(null)}>{t('nav.settings')}</MenuItem>
|
<MenuItem component={Link} to="/settings" onClick={() => setAnchorEl(null)}>{t('nav.settings')}</MenuItem>
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|||||||
Reference in new issue
Block a user