show pages to unauthenticated user
This commit is contained in:
@@ -4,7 +4,6 @@ import { Transition } from "@headlessui/react";
|
||||
import cs from "classnames";
|
||||
|
||||
import { useApp } from "../../contexts/AppProvider";
|
||||
import { useCurrentUser } from "../../contexts/UserProvider";
|
||||
|
||||
type MenuItem = {
|
||||
label: string;
|
||||
@@ -39,7 +38,6 @@ const MenuItems: MenuItem[] = [
|
||||
];
|
||||
|
||||
export const SideNav = () => {
|
||||
const { isAuthenticated } = useCurrentUser();
|
||||
const { sideNavExpanded, setSideNavExpanded } = useApp();
|
||||
const location = useLocation();
|
||||
|
||||
@@ -53,8 +51,6 @@ export const SideNav = () => {
|
||||
}
|
||||
};
|
||||
|
||||
if (!isAuthenticated) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Transition
|
||||
|
||||
Reference in New Issue
Block a user