1
0
Fork 0

chore: Linter warnings

This commit is contained in:
joostdecock 2024-03-23 17:14:57 +01:00
parent 81831f1dc4
commit 38d48690ad
2 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,7 @@ import get from 'lodash.get'
import Link from 'next/link'
import { useContext } from 'react'
import { NavigationContext } from 'shared/context/navigation-context.mjs'
import { BulletIcon, RightIcon } from 'shared/components/icons.mjs'
import { RightIcon } from 'shared/components/icons.mjs'
import { pageHasChildren } from 'shared/utils.mjs'
import orderBy from 'lodash.orderby'
@ -25,7 +25,7 @@ const onActivePath = (slug, active) => (active ? active.slice(0, slug.length) ==
/*
* This is a recursive function, so it needs to be lean
*/
const RenderTree = ({ tree, recurse, depth = 1, level = 0, active = false, from = false }) => {
const RenderTree = ({ tree, recurse, depth = 1, level = 0, active = false }) => {
const orderedTree = orderBy(tree, ['o', 't'], ['asc', 'asc']).filter(
(item) => typeof item === 'object'
)

View file

@ -169,6 +169,7 @@ export const extendSiteNav = async (siteNav, lang) => {
// Add curated measurements sets
siteNav['curated-sets'] = {
_: 1,
m: 1,
s: 'curated-sets',
t: t('sections:curatedSets'),
@ -226,6 +227,7 @@ export const extendSiteNav = async (siteNav, lang) => {
// Add support
siteNav.support = {
_: 1,
m: 1,
s: 'support',
t: t('sections:support'),