fixed use context error

This commit was merged in pull request #4.
This commit is contained in:
victorAnumudu
2025-09-09 17:40:41 +01:00
parent 59184d38aa
commit f2671c44a2
11 changed files with 20 additions and 21 deletions
@@ -2,12 +2,12 @@ import { useState } from "react";
import { useLocation } from "react-router-dom"
import { FaCaretDown } from "react-icons/fa";
import Icons from "../../Icons";
import { generalLayoutContext } from "../../../context/GeneralLayoutContext";
import { GeneralLayoutContext } from "../../../context/GeneralLayoutContext";
export default function AsideLinkWithSubLinks({name, icon, to, children, isOpen}) {
const {shrinkAside} = generalLayoutContext()
const {shrinkAside} = GeneralLayoutContext()
const {pathname} = useLocation()