chore: Linter warnings
This commit is contained in:
parent
b5303e0e63
commit
3df7367fc7
8 changed files with 3 additions and 18 deletions
|
@ -10,7 +10,7 @@ import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
|
||||||
import { nsMerge } from 'shared/utils.mjs'
|
import { nsMerge } from 'shared/utils.mjs'
|
||||||
import { ChoiceLink } from 'shared/components/choice-link.mjs'
|
import { ChoiceLink } from 'shared/components/choice-link.mjs'
|
||||||
|
|
||||||
import { NavLinks, Breadcrumbs, MainSections } from 'shared/components/navigation/sitenav.mjs'
|
import { NavLinks, Breadcrumbs } from 'shared/components/navigation/sitenav.mjs'
|
||||||
|
|
||||||
export const ns = nsMerge(sectionsNs)
|
export const ns = nsMerge(sectionsNs)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { Robot } from 'shared/components/robot/index.mjs'
|
||||||
import { Popout } from 'shared/components/popout.mjs'
|
import { Popout } from 'shared/components/popout.mjs'
|
||||||
import { PageLink } from 'shared/components/page-link.mjs'
|
import { PageLink } from 'shared/components/page-link.mjs'
|
||||||
import { BaseLayout, BaseLayoutLeft, BaseLayoutWide } from 'shared/components/base-layout.mjs'
|
import { BaseLayout, BaseLayoutLeft, BaseLayoutWide } from 'shared/components/base-layout.mjs'
|
||||||
import { NavLinks, Breadcrumbs, MainSections } from 'shared/components/navigation/sitenav.mjs'
|
import { NavLinks, MainSections } from 'shared/components/navigation/sitenav.mjs'
|
||||||
|
|
||||||
const Page404 = () => {
|
const Page404 = () => {
|
||||||
const title = '404: Page not found'
|
const title = '404: Page not found'
|
||||||
|
|
|
@ -14,7 +14,6 @@ import { MdxWrapper } from 'shared/components/wrappers/mdx.mjs'
|
||||||
import { Toc } from 'shared/components/mdx/toc.mjs'
|
import { Toc } from 'shared/components/mdx/toc.mjs'
|
||||||
import { MdxMetaData } from 'shared/components/mdx/meta.mjs'
|
import { MdxMetaData } from 'shared/components/mdx/meta.mjs'
|
||||||
import { PrevNext } from 'shared/components/prev-next.mjs'
|
import { PrevNext } from 'shared/components/prev-next.mjs'
|
||||||
import { ReadMore } from 'shared/components/mdx/read-more.mjs'
|
|
||||||
import { NavLinks, Breadcrumbs, MainSections } from 'shared/components/navigation/sitenav.mjs'
|
import { NavLinks, Breadcrumbs, MainSections } from 'shared/components/navigation/sitenav.mjs'
|
||||||
import {
|
import {
|
||||||
BaseLayout,
|
BaseLayout,
|
||||||
|
|
|
@ -15,7 +15,6 @@ import {
|
||||||
I18nIcon,
|
I18nIcon,
|
||||||
MeasieIcon,
|
MeasieIcon,
|
||||||
PageIcon,
|
PageIcon,
|
||||||
PlusIcon,
|
|
||||||
RssIcon,
|
RssIcon,
|
||||||
} from 'shared/components/icons.mjs'
|
} from 'shared/components/icons.mjs'
|
||||||
import { HeaderWrapper } from 'shared/components/wrappers/header.mjs'
|
import { HeaderWrapper } from 'shared/components/wrappers/header.mjs'
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
// Hooks
|
// Hooks
|
||||||
import { useContext } from 'react'
|
|
||||||
import { useNavigation } from 'site/hooks/use-navigation.mjs'
|
import { useNavigation } from 'site/hooks/use-navigation.mjs'
|
||||||
// Context
|
|
||||||
import { NavigationContext } from 'shared/context/navigation-context.mjs'
|
|
||||||
// Components
|
// Components
|
||||||
//import { AsideNavigation, ns as navNs } from 'shared/components/navigation/aside.mjs'
|
|
||||||
//import { Breadcrumbs } from 'shared/components/breadcrumbs.mjs'
|
|
||||||
//import { NavigationContext } from 'shared/context/navigation-context.mjs'
|
|
||||||
|
|
||||||
import { BaseLayout, BaseLayoutLeft, BaseLayoutWide } from 'shared/components/base-layout.mjs'
|
import { BaseLayout, BaseLayoutLeft, BaseLayoutWide } from 'shared/components/base-layout.mjs'
|
||||||
import { NavLinks, Breadcrumbs, MainSections } from 'shared/components/navigation/sitenav.mjs'
|
import { NavLinks, Breadcrumbs, MainSections } from 'shared/components/navigation/sitenav.mjs'
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||||
import { TranslationStatus } from 'site/components/crowdin/status.mjs'
|
import { TranslationStatus } from 'site/components/crowdin/status.mjs'
|
||||||
import { Translators } from 'site/components/crowdin/translators.mjs'
|
import { Translators } from 'site/components/crowdin/translators.mjs'
|
||||||
import { Popout } from 'shared/components/popout.mjs'
|
import { Popout } from 'shared/components/popout.mjs'
|
||||||
import { Breadcrumbs } from 'shared/components/breadcrumbs.mjs'
|
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|
||||||
// Translation namespaces used on this page
|
// Translation namespaces used on this page
|
||||||
|
|
|
@ -3,8 +3,6 @@ import { scrollTo } from 'shared/utils.mjs'
|
||||||
|
|
||||||
export const ns = ['docs']
|
export const ns = ['docs']
|
||||||
|
|
||||||
const Spacer = () => <span> </span>
|
|
||||||
|
|
||||||
export const Toc = ({ toc = [], wrap = false }) => {
|
export const Toc = ({ toc = [], wrap = false }) => {
|
||||||
const { t } = useTranslation(ns)
|
const { t } = useTranslation(ns)
|
||||||
if (toc.length < 1) return null
|
if (toc.length < 1) return null
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { useContext } from 'react'
|
import { pageHasChildren, isSlugPart } from 'shared/utils.mjs'
|
||||||
import { NavigationContext } from 'shared/context/navigation-context.mjs'
|
|
||||||
import { pageHasChildren, oneUpSlug, maxPovDepthSlug, isSlugPart } from 'shared/utils.mjs'
|
|
||||||
import { siteConfig } from 'site/site.config.mjs'
|
|
||||||
import get from 'lodash.get'
|
import get from 'lodash.get'
|
||||||
import { HomeIcon, RightIcon, BulletIcon } from 'shared/components/icons.mjs'
|
import { HomeIcon, RightIcon, BulletIcon } from 'shared/components/icons.mjs'
|
||||||
import { PageLink } from 'shared/components/page-link.mjs'
|
import { PageLink } from 'shared/components/page-link.mjs'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue