ыввы
This commit is contained in:
@@ -92,7 +92,12 @@ export const AppHeader = React.memo(function AppHeader() {
|
||||
transition: 'box-shadow 0.2s ease, background-color 0.2s ease',
|
||||
}}
|
||||
>
|
||||
<Toolbar>
|
||||
<Toolbar
|
||||
sx={{
|
||||
'& .MuiButton-text:hover': { bgcolor: 'rgba(255,255,255,0.12)' },
|
||||
'& .MuiIconButton-root:hover': { bgcolor: 'rgba(255,255,255,0.15)' },
|
||||
}}
|
||||
>
|
||||
{isMobile && (
|
||||
<IconButton
|
||||
color="inherit"
|
||||
|
||||
@@ -33,7 +33,12 @@ export function UserMenu({ user, isAdmin = false, onNavigate, onLogout }: Props)
|
||||
|
||||
return (
|
||||
<>
|
||||
<IconButton color="inherit" onClick={openMenu} sx={{ ml: 1 }} aria-label="Пользователь">
|
||||
<IconButton
|
||||
color="inherit"
|
||||
onClick={user ? openMenu : () => go('/auth')}
|
||||
sx={{ ml: 1 }}
|
||||
aria-label="Пользователь"
|
||||
>
|
||||
{user ? (
|
||||
<UserAvatar userId={user.id} avatarUrl={user.avatar} avatarStyle={user.avatarStyle} size={28} />
|
||||
) : (
|
||||
|
||||
@@ -12,7 +12,7 @@ type Props = {
|
||||
const SCHEMES: { key: ColorScheme; color: string; label: string; icon: React.ReactNode }[] = [
|
||||
{ key: 'craft', color: '#546E7A', label: 'Крафт', icon: <Hammer size={16} /> },
|
||||
{ key: 'forest', color: '#2E8B57', label: 'Лес', icon: <Trees size={16} /> },
|
||||
{ key: 'ocean', color: '#20B2AA', label: 'Океан', icon: <WavesHorizontal size={16} /> },
|
||||
{ key: 'ocean', color: '#0E8A82', label: 'Океан', icon: <WavesHorizontal size={16} /> },
|
||||
{ key: 'berry', color: '#8A2BE2', label: 'Ягоды', icon: <Cherry size={16} /> },
|
||||
]
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user