forked from Kieran/snort
bug: hide note creator on /new & /messages
This commit is contained in:
parent
7dc9887754
commit
41aa93a279
@ -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]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user