chore: setup project for production
This commit is contained in:
21
app/NavigationWrapper.jsx
Normal file
21
app/NavigationWrapper.jsx
Normal file
@@ -0,0 +1,21 @@
|
||||
"use client";
|
||||
|
||||
import { usePathname } from "next/navigation";
|
||||
import TopBanner from "@/components/header/TopBanner";
|
||||
import Navbar from "@/components/header/Navbar";
|
||||
|
||||
export default function NavigationWrapper() {
|
||||
const pathname = usePathname();
|
||||
|
||||
const isAuthPage =
|
||||
pathname === "/accounts/login" || pathname === "/accounts/register";
|
||||
|
||||
if (isAuthPage) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <TopBanner /> */}
|
||||
<Navbar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user