HasNotificationsMarker for left nav

This commit is contained in:
Martti Malmi
2023-11-27 21:20:29 +02:00
parent 836af8fbd2
commit 6190f3cd9d
5 changed files with 13 additions and 20 deletions

View File

@ -29,9 +29,7 @@ export default function Index() {
useLoginFeed();
const hideHeaderPaths = ["/login", "/new"];
const hideRightColumnPaths = ["/login", "/new", "/messages", "/settings"];
const shouldHideHeader = hideHeaderPaths.some(path => location.pathname.startsWith(path));
const shouldHideRightColumn = hideRightColumnPaths.some(path => location.pathname.startsWith(path));
const pageClassPaths = useMemo(
() => ({
@ -69,7 +67,7 @@ export default function Index() {
<Outlet />
</ErrorBoundary>
</div>
<RightColumn show={!shouldHideRightColumn} />
<RightColumn />
</div>
<div className="md:hidden">
<NoteCreatorButton className="note-create-button" />