1
0
Fork 0

chore(dev): Fixed some linter warnings

This commit is contained in:
joostdecock 2023-05-17 13:25:57 +02:00
parent 9efac65510
commit fb51d39159
4 changed files with 8 additions and 10 deletions

View file

@ -5,12 +5,13 @@ import { useTranslation } from 'next-i18next'
import orderBy from 'lodash.orderby'
import { colors } from 'site/components/header/index.mjs'
import { NavigationContext } from 'shared/context/navigation-context.mjs'
import { HelpIcon } from 'shared/components/icons.mjs'
export const ns = sectionsNs
export const SectionsMenu = () => {
const { t } = useTranslation(ns)
const { sections = false, slug } = useContext(NavigationContext)
const { sections = false } = useContext(NavigationContext)
if (!sections) return null
// Ensure each page as an `o` key so we can put them in order