removed some build warnings

This commit was merged in pull request #5.
This commit is contained in:
victorAnumudu
2025-09-09 19:09:41 +01:00
parent b303af13f0
commit 0d9fb7976d
27 changed files with 108 additions and 102 deletions
@@ -1,5 +1,5 @@
import { useState } from "react";
import { useLocation } from "react-router-dom"
// import { useLocation } from "react-router-dom"
import { FaCaretDown } from "react-icons/fa";
import Icons from "../../Icons";
import { GeneralLayoutContext } from "../../../context/GeneralLayoutContext";
@@ -9,9 +9,9 @@ export default function AsideLinkWithSubLinks({name, icon, to, children, isOpen}
const {shrinkAside} = GeneralLayoutContext()
const {pathname} = useLocation()
// const {pathname} = useLocation()
const isMatchedPath = pathname.split('/').includes('')
// const isMatchedPath = pathname.split('/').includes('')
// isMatchedPath.splice(0,1)
const [hideSubMenu, setHideSubMenu] = useState(isOpen)