Compare commits

...

3 Commits

Author SHA1 Message Date
Muthu Kumar 30f62530f9
merge: #2 from alok8bb/master 3 months ago
Alok c8ee9eaceb
fix: minor mistake in string concatenation 3 months ago
alok8bb fa2c5c117a
fix: handle subpaths in menu entries navigation 3 months ago
  1. 4
      src/components/Container.tsx

4
src/components/Container.tsx

@ -120,7 +120,9 @@ const Container: React.FC<{
} catch {}
};
const current = MenuEntries.findIndex(([, path]) => location === path);
const current = MenuEntries.findIndex(
([, path]) => location === path || location.startsWith(path + "/"),
);
const next = get.next(MenuEntries, current)[1];
const prev = get.prev(MenuEntries, current)[1];
const end = current === MenuEntries.length - 1;

Loading…
Cancel
Save