restore useLoginFeed
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Martti Malmi 2023-11-22 16:13:36 +02:00
parent 131e564bd0
commit 55fae3aa41

View File

@ -16,6 +16,7 @@ import NavSidebar from "./NavSidebar";
import AccountHeader from "./AccountHeader";
import RightColumn from "./RightColumn";
import { LogoHeader } from "./LogoHeader";
import useLoginFeed from "@/Feed/LoginFeed";
export default function Index() {
const location = useLocation();
@ -24,6 +25,7 @@ export default function Index() {
useTheme();
useLoginRelays();
useLoginFeed();
const hideHeaderPaths = ["/login", "/new"];
const shouldHideHeader = hideHeaderPaths.some(path => location.pathname.startsWith(path));