mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2025-12-17 17:18:09 +00:00
26-05-2025/Fixed Used Variables and Icons
This commit is contained in:
@ -8,11 +8,9 @@ import { usePathname } from "next/navigation"; // Import usePathname
|
||||
import {
|
||||
FiChevronDown,
|
||||
FiClipboard,
|
||||
FiArrowRight,
|
||||
FiMenu,
|
||||
FiX,
|
||||
FiUsers,
|
||||
FiBriefcase,
|
||||
FiCpu,
|
||||
FiBox,
|
||||
FiFileText,
|
||||
@ -45,7 +43,7 @@ const HeaderClient = () => {
|
||||
const [servicesDropdownOpen, setServicesDropdownOpen] = useState(false);
|
||||
const [productsDropdownOpen, setProductsDropdownOpen] = useState(false);
|
||||
const [joinUsDropdownOpen, setJoinUsDropdownOpen] = useState(false);
|
||||
const [offeringsDropdownOpen, setOfferingsDropdownOpen] = useState(false);
|
||||
|
||||
|
||||
const handleServicesMouseEnter = () => setServicesDropdownOpen(true);
|
||||
const handleServicesMouseLeave = () => setServicesDropdownOpen(false);
|
||||
@ -56,9 +54,6 @@ const HeaderClient = () => {
|
||||
const handleJoinUsMouseEnter = () => setJoinUsDropdownOpen(true);
|
||||
const handleJoinUsMouseLeave = () => setJoinUsDropdownOpen(false);
|
||||
|
||||
const handleOfferingsMouseEnter = () => setOfferingsDropdownOpen(true);
|
||||
const handleOfferingsMouseLeave = () => setOfferingsDropdownOpen(false);
|
||||
|
||||
const pathname = usePathname(); // Get current path
|
||||
|
||||
// Helper function to check if a path is active (exact match for simple links, startsWith for base paths)
|
||||
|
||||
Reference in New Issue
Block a user