Add memo optimization

This commit is contained in:
adilallo
2025-10-07 16:50:33 -06:00
parent e3861f6857
commit 2ed878af81
37 changed files with 1852 additions and 1480 deletions
+7 -2
View File
@@ -1,5 +1,6 @@
"use client";
import React, { memo } from "react";
import { usePathname } from "next/navigation";
import Logo from "./Logo";
import MenuBar from "./MenuBar";
@@ -38,7 +39,7 @@ export const logoConfig = [
{ breakpoint: "hidden xl:block", size: "headerXl", showText: true },
];
export default function Header() {
const Header = memo(() => {
const pathname = usePathname();
// Schema markup for site navigation
@@ -214,4 +215,8 @@ export default function Header() {
</header>
</>
);
}
});
Header.displayName = "Header";
export default Header;