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();
|
||||
|
||||
const shouldHideNoteCreator = useMemo(() => {
|
||||
const hideNoteCreator = ["/settings"]
|
||||
const hideNoteCreator = ["/settings", "/messages", "/new"]
|
||||
return hideNoteCreator.some(a => location.pathname.startsWith(a));
|
||||
}, [location]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user