moved icon profile on up
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user