chore: Linter warnings
This commit is contained in:
parent
81831f1dc4
commit
38d48690ad
2 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@ import get from 'lodash.get'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { useContext } from 'react'
|
import { useContext } from 'react'
|
||||||
import { NavigationContext } from 'shared/context/navigation-context.mjs'
|
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 { pageHasChildren } from 'shared/utils.mjs'
|
||||||
import orderBy from 'lodash.orderby'
|
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
|
* 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(
|
const orderedTree = orderBy(tree, ['o', 't'], ['asc', 'asc']).filter(
|
||||||
(item) => typeof item === 'object'
|
(item) => typeof item === 'object'
|
||||||
)
|
)
|
||||||
|
|
|
@ -169,6 +169,7 @@ export const extendSiteNav = async (siteNav, lang) => {
|
||||||
|
|
||||||
// Add curated measurements sets
|
// Add curated measurements sets
|
||||||
siteNav['curated-sets'] = {
|
siteNav['curated-sets'] = {
|
||||||
|
_: 1,
|
||||||
m: 1,
|
m: 1,
|
||||||
s: 'curated-sets',
|
s: 'curated-sets',
|
||||||
t: t('sections:curatedSets'),
|
t: t('sections:curatedSets'),
|
||||||
|
@ -226,6 +227,7 @@ export const extendSiteNav = async (siteNav, lang) => {
|
||||||
|
|
||||||
// Add support
|
// Add support
|
||||||
siteNav.support = {
|
siteNav.support = {
|
||||||
|
_: 1,
|
||||||
m: 1,
|
m: 1,
|
||||||
s: 'support',
|
s: 'support',
|
||||||
t: t('sections:support'),
|
t: t('sections:support'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue