cleanup the repo unused images
This commit is contained in:
@@ -19,8 +19,13 @@ const CURRENT_PAGE_MAP: Record<string, string> = {
|
||||
"/how-it-works": "how-it-works",
|
||||
"/miletruth": "miletruth",
|
||||
"/solutions": "solutions",
|
||||
"/about": "about",
|
||||
"/about-us": "about",
|
||||
"/blog": "blogs",
|
||||
"/contact": "contact",
|
||||
"/privacy-policy": "privacy-policy",
|
||||
"/terms-of-service": "terms-of-service",
|
||||
"/cookie-policy": "cookie-policy",
|
||||
};
|
||||
|
||||
// Mirror of header.php $current_page_aliases (lines 37-44)
|
||||
@@ -31,6 +36,10 @@ const CURRENT_PAGE_ALIASES: Record<string, string[]> = {
|
||||
solutions: ["solutions"],
|
||||
about: ["about", "about-us", "women"],
|
||||
blogs: ["blogs"],
|
||||
contact: ["contact"],
|
||||
"privacy-policy": ["privacy-policy"],
|
||||
"terms-of-service": ["terms-of-service"],
|
||||
"cookie-policy": ["cookie-policy"],
|
||||
};
|
||||
|
||||
export default function Header() {
|
||||
@@ -38,7 +47,10 @@ export default function Header() {
|
||||
const { isMenuOpen, isSidebarOpen, toggleMenu, toggleSidebar, closeAll } = useHeaderUI();
|
||||
|
||||
const isHome = pathname === "/";
|
||||
const currentPage = CURRENT_PAGE_MAP[pathname] ?? "";
|
||||
let currentPage = CURRENT_PAGE_MAP[pathname] ?? "";
|
||||
if (pathname.startsWith("/blog/")) {
|
||||
currentPage = "blogs";
|
||||
}
|
||||
|
||||
// Mirror of header.php $dm_header_active (lines 45-47)
|
||||
const dmHeaderActive = (key: string) =>
|
||||
@@ -409,8 +421,8 @@ export default function Header() {
|
||||
<Link data-elementor-open-lightbox="" className="elementor-clickable" href="/">
|
||||
<div className="hfe-site-logo-set">
|
||||
<div className="hfe-site-logo-container">
|
||||
<Image width={400} height={76} className="hfe-site-logo-img logo-desktop elementor-animation-" src="/images/doormile-white.png" alt="doormile-logo" priority />
|
||||
<Image width={400} height={76} className="hfe-site-logo-img logo-mobile elementor-animation-" src="/images/doormile-black.png" alt="doormile-logo" priority />
|
||||
<Image width={748} height={100} className="hfe-site-logo-img logo-desktop elementor-animation-" src="/images/doormile-white.png" alt="doormile-logo" priority />
|
||||
<Image width={748} height={100} className="hfe-site-logo-img logo-mobile elementor-animation-" src="/images/doormile-black.png" alt="doormile-logo" priority />
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user