feat: note creator button on deck

This commit is contained in:
2023-10-16 14:41:55 +01:00
parent 65552e126b
commit f0110e9009
9 changed files with 88 additions and 82 deletions

View File

@ -5,13 +5,13 @@ import "./Nav.css";
import Icon from "Icons/Icon";
import { Link } from "react-router-dom";
import { profileLink } from "SnortUtils";
import { NoteCreatorButton } from "Element/Event/NoteCreatorButton";
export function DeckNav() {
const { publicKey } = useLogin();
const profile = useUserProfile(publicKey);
const unreadDms = 0;
const hasNotifications = false;
return (
<nav className="deck flex-column f-space">
@ -20,15 +20,12 @@ export function DeckNav() {
<Icon name="mail" size={24} />
{unreadDms > 0 && <span className="has-unread"></span>}
</Link>
<Link className="btn" to="/notifications">
<Icon name="bell-02" size={24} />
{hasNotifications && <span className="has-unread"></span>}
</Link>
<NoteCreatorButton />
</div>
<div className="flex-column f-center g16">
<Link className="btn" to="/">
{/*<Link className="btn" to="/">
<Icon name="grid-01" size={24} />
</Link>
</Link>*/}
<Link className="btn" to="/settings">
<Icon name="settings-02" size={24} />
</Link>