From 41aa93a279c0be905598ccae02ea07bc36d408d9 Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 7 Feb 2023 10:19:25 +0000 Subject: [PATCH] bug: hide note creator on /new & /messages --- src/Pages/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pages/Layout.tsx b/src/Pages/Layout.tsx index 3fc74db1..da6c410a 100644 --- a/src/Pages/Layout.tsx +++ b/src/Pages/Layout.tsx @@ -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]);