bug: hide note creator on /new & /messages

This commit is contained in:
Kieran 2023-02-07 10:19:25 +00:00
parent 7dc9887754
commit 41aa93a279
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -35,7 +35,7 @@ export default function Layout() {
useLoginFeed(); useLoginFeed();
const shouldHideNoteCreator = useMemo(() => { const shouldHideNoteCreator = useMemo(() => {
const hideNoteCreator = ["/settings"] const hideNoteCreator = ["/settings", "/messages", "/new"]
return hideNoteCreator.some(a => location.pathname.startsWith(a)); return hideNoteCreator.some(a => location.pathname.startsWith(a));
}, [location]); }, [location]);