1
0
Fork 0

fix lab build errors after mjs transition

This commit is contained in:
Enoch Riese 2023-02-09 21:39:19 -06:00
parent 6d5d13e9b5
commit dd4aabc557
17 changed files with 42 additions and 44 deletions

View file

@ -1,7 +1,7 @@
import { useTranslation } from 'next-i18next'
import { svgattrPlugin } from '@freesewing/plugin-svgattr'
import { SvgWrapper } from './draft/svg.mjs'
import { Error } from './draft/error.mjs'
import { DraftError } from './draft/error.mjs'
export const LabSample = ({ gist, draft, updateGist, unsetGist, showInfo, app, feedback }) => {
const { t } = useTranslation(['workbench'])
@ -32,7 +32,7 @@ export const LabSample = ({ gist, draft, updateGist, unsetGist, showInfo, app, f
<>
<h2>{title}</h2>
{!patternProps || errors.length > 0 ? (
<Error {...{ draft, patternProps, updateGist, errors }} />
<DraftError {...{ draft, patternProps, updateGist, errors }} />
) : null}
<SvgWrapper
{...{ draft, patternProps, gist, updateGist, unsetGist, showInfo, app, feedback }}