moved icon profile on up

This commit is contained in:
SlimusMinus
2026-06-29 01:56:25 +03:00
parent b3e1b26fa7
commit 94de4170b6
6 changed files with 59 additions and 36 deletions

View File

@@ -1,7 +1,6 @@
import LogoIcon from "./icons/LogoIcon";
import {NAV_BOTTOM, NAV_ITEMS} from "../config/feedConstants";
import {NavIcons} from "./icons/NavIcons";
import Profile from "./profile/Profile";
import { useNavigate } from "react-router-dom";
export default function Sidebar({
@@ -9,10 +8,7 @@ export default function Sidebar({
activeNav,
onClose,
onNavClick,
onEditProfile,
profileData = {},
isAuthenticated,
onLogout,
onLoginClick,
onRulesClick,
onReviewsClick,
@@ -82,28 +78,6 @@ export default function Sidebar({
</div>
);
})}
<div className="f-sb-divider" />
{isAuthenticated ? (
<>
<Profile data={profileData} onEdit={onEditProfile} />
<div
className="f-sb-item"
onClick={() => { onLogout(); onClose(); }}
style={{ color: "rgba(255,107,107,.7)", marginTop: 8 }}
>
<span style={{ fontSize: "1.1rem" }}>🚪</span> Выйти
</div>
</>
) : (
<div
className="f-sb-item"
onClick={() => { onLoginClick(); onClose(); }}
style={{ color: "#2de0c8" }}
>
<span style={{ fontSize: "1.1rem" }}>🔑</span> Войти
</div>
)}
</div>
</div>
</>