diff --git a/app/ui/PageHeader.tsx b/app/ui/PageHeader.tsx index f76f15f..ad90369 100644 --- a/app/ui/PageHeader.tsx +++ b/app/ui/PageHeader.tsx @@ -5,18 +5,19 @@ import Link from "next/link"; import { SelectLanguage } from "./SelectLanguage"; import AccountCircle from "@mui/icons-material/AccountCircle"; import { useLocale } from "next-intl"; -import { useSession } from "next-auth/react"; +import { usePathname } from "next/navigation"; export const PageHeader = () => { const locale = useLocale(); - const { data: session } = useSession(); + const pathname = usePathname(); + const isRestrictedPage = pathname.includes('/home'); return (