1
0
Fork 0

chore(shared): Fix linter warnings in sites/shared

This commit is contained in:
joostdecock 2023-05-19 18:15:06 +02:00
parent fef2edd13d
commit c11a29e28a
16 changed files with 29 additions and 294 deletions

View file

@ -3,13 +3,9 @@ import { components as baseComponents } from 'shared/components/mdx/index.mjs'
// List of authors
import { authors as allAuthors } from 'config/authors.mjs'
import { docUpdates } from 'site/prebuild/doc-updates.mjs'
// FreeSewing config
import { freeSewingConfig } from 'shared/config/freesewing.config.mjs'
// Components
import { PageLink } from 'shared/components/page-link.mjs'
import { WebLink } from 'shared/components/web-link.mjs'
import { DateTime, Interval } from 'luxon'
import { DocsIcon } from 'shared/components/icons.mjs'
// Context
import { useContext } from 'react'
import { NavigationContext } from 'shared/context/navigation-context.mjs'
@ -116,8 +112,8 @@ export const MdxWrapper = ({ MDX, frontmatter = {}, components = {} }) => {
<div className="text-primary mdx max-w-prose text-base-content max-w-prose text-base">
<MetaData
maintainers={frontmatter?.maintainers || []}
authors={updates?.authors || []}
lastUpdated={updates?.lastUpdates}
authors={updates.authors || []}
lastUpdated={updates.lastUpdates}
{...{ locale, slug, t }}
/>
<MDX components={allComponents} />