[WIP] Improvement
This commit is contained in:
@@ -83,7 +83,7 @@ function NavListSub({ list }: NavListSubProps) {
|
||||
|
||||
const { pathname } = useLocation();
|
||||
|
||||
const active = getActive(list.path, pathname);
|
||||
const active = getActive(list.path, pathname, list.openWhen);
|
||||
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user