UI: кнопка «Меню» (гамбургер) в нижней панели → боковое меню справа (плашка аккаунта + Выйти)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 16:39:20 +03:00
co-authored by Claude Opus 4.8
parent 6196c39d25
commit 460b57e792
4 changed files with 122 additions and 6 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
import { Plus, Settings, Users } from "lucide-react";
import { Menu, Plus, Users } from "lucide-react";
import { useNavigate } from "react-router-dom";
import { useToast } from "../context/ToastContext";
import { useMe } from "../hooks/auth";
export function BottomBar() {
export function BottomBar({ onMenu }: { onMenu: () => void }) {
const { data: me } = useMe();
const navigate = useNavigate();
const toast = useToast();
@@ -29,9 +29,9 @@ export function BottomBar() {
<div className="spacer" />
<button className="slot" onClick={() => navigate("/account")}>
<Settings size={20} />
<span>Аккаунт</span>
<button className="slot" onClick={onMenu} aria-label="Меню">
<Menu size={20} />
<span>Меню</span>
</button>
<button