feat: community leaders

This commit is contained in:
2023-12-18 15:57:00 +00:00
parent 457cba32a7
commit 7523b41610
14 changed files with 192 additions and 11 deletions

View File

@ -17,6 +17,7 @@ import ErrorBoundary from "@/Element/ErrorBoundary";
import Footer from "@/Pages/Layout/Footer";
import { Header } from "@/Pages/Layout/Header";
import CloseButton from "@/Element/Button/CloseButton";
import { useCommunityLeaders } from "@/Hooks/useCommunityLeaders";
export default function Index() {
const location = useLocation();
@ -25,6 +26,9 @@ export default function Index() {
useTheme();
useLoginRelays();
useLoginFeed();
if (CONFIG.features.communityLeaders) {
useCommunityLeaders();
}
const hideHeaderPaths = ["/login", "/new"];
const shouldHideFooter = location.pathname.startsWith("/messages/");