круто
This commit is contained in:
@ -207,6 +207,8 @@ export default function TopBar({ onRegister, username }: TopBarProps) {
|
||||
|
||||
const logout = () => {
|
||||
localStorage.removeItem('launcher_config');
|
||||
localStorage.removeItem(`coins:${username}`);
|
||||
localStorage.removeItem('last_route');
|
||||
navigate('/login');
|
||||
window.electron.ipcRenderer.invoke('auth-changed', { isAuthed: false });
|
||||
};
|
||||
@ -574,6 +576,19 @@ export default function TopBar({ onRegister, username }: TopBarProps) {
|
||||
<PersonIcon sx={{ fontSize: '2vw' }} /> Профиль
|
||||
</MenuItem>
|
||||
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
handleAvatarMenuClose();
|
||||
navigate('/inventory');
|
||||
}}
|
||||
sx={[
|
||||
{ fontSize: '1.5vw', gap: '0.5vw', py: '0.7vw' },
|
||||
theme.launcher.topbar.menuItem,
|
||||
]}
|
||||
>
|
||||
<CategoryIcon sx={{ fontSize: '2vw' }} /> Инвентарь
|
||||
</MenuItem>
|
||||
|
||||
{/* ===== 2 строка: ежедневные задания ===== */}
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
@ -602,19 +617,6 @@ export default function TopBar({ onRegister, username }: TopBarProps) {
|
||||
<EmojiEventsIcon sx={{ fontSize: '2vw' }} /> Ежедневная награда
|
||||
</MenuItem>
|
||||
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
handleAvatarMenuClose();
|
||||
navigate('/inventory');
|
||||
}}
|
||||
sx={[
|
||||
{ fontSize: '1.5vw', gap: '0.5vw', py: '0.7vw' },
|
||||
theme.launcher.topbar.menuItem,
|
||||
]}
|
||||
>
|
||||
<CategoryIcon sx={{ fontSize: '2vw' }} /> Инвентарь
|
||||
</MenuItem>
|
||||
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
handleAvatarMenuClose();
|
||||
|
||||
Reference in New Issue
Block a user