refactor: flex styles / fixes / profile links
This commit is contained in:
@ -4,8 +4,8 @@ import useLogin from "Hooks/useLogin";
|
||||
import "./Nav.css";
|
||||
import Icon from "Icons/Icon";
|
||||
import { Link } from "react-router-dom";
|
||||
import { profileLink } from "SnortUtils";
|
||||
import { NoteCreatorButton } from "Element/Event/NoteCreatorButton";
|
||||
import { ProfileLink } from "Element/User/ProfileLink";
|
||||
|
||||
export function DeckNav() {
|
||||
const { publicKey } = useLogin();
|
||||
@ -14,24 +14,24 @@ export function DeckNav() {
|
||||
const unreadDms = 0;
|
||||
|
||||
return (
|
||||
<nav className="deck flex-column f-space">
|
||||
<div className="flex-column f-center g24">
|
||||
<nav className="deck flex flex-col justify-between">
|
||||
<div className="flex flex-col items-center g24">
|
||||
<Link className="btn" to="/messages">
|
||||
<Icon name="mail" size={24} />
|
||||
{unreadDms > 0 && <span className="has-unread"></span>}
|
||||
</Link>
|
||||
<NoteCreatorButton />
|
||||
</div>
|
||||
<div className="flex-column f-center g16">
|
||||
<div className="flex flex-col items-center g16">
|
||||
{/*<Link className="btn" to="/">
|
||||
<Icon name="grid-01" size={24} />
|
||||
</Link>*/}
|
||||
<Link className="btn" to="/settings">
|
||||
<Icon name="settings-02" size={24} />
|
||||
</Link>
|
||||
<Link to={profileLink(publicKey ?? "")}>
|
||||
<ProfileLink pubkey={publicKey ?? ""} user={profile}>
|
||||
<Avatar pubkey={publicKey ?? ""} user={profile} />
|
||||
</Link>
|
||||
</ProfileLink>
|
||||
</div>
|
||||
</nav>
|
||||
);
|
||||
|
Reference in New Issue
Block a user