chore: hide note creator on donate page
This commit is contained in:
parent
b5c145a131
commit
9595524a94
@ -40,7 +40,7 @@ export default function Layout() {
|
|||||||
useLoginFeed();
|
useLoginFeed();
|
||||||
|
|
||||||
const shouldHideNoteCreator = useMemo(() => {
|
const shouldHideNoteCreator = useMemo(() => {
|
||||||
const hideOn = ["/settings", "/messages", "/new", "/login"];
|
const hideOn = ["/settings", "/messages", "/new", "/login", "/donate"];
|
||||||
return hideOn.some(a => location.pathname.startsWith(a));
|
return hideOn.some(a => location.pathname.startsWith(a));
|
||||||
}, [location]);
|
}, [location]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user