chore: Linter fixes
This commit is contained in:
parent
b1429a3704
commit
ef5e792d6b
40 changed files with 93 additions and 99 deletions
|
@ -2,7 +2,7 @@ import Part from './part'
|
|||
import { getProps } from './utils'
|
||||
|
||||
const Stack = props => {
|
||||
const { stackName, stack, patternProps, gist, app, updateGist, unsetGist, showInfo } = props
|
||||
const { stackName, stack, gist, app, updateGist, unsetGist, showInfo } = props
|
||||
|
||||
return (
|
||||
<g {...getProps(stack)} id={`stack-${stackName}`}>
|
||||
|
|
|
@ -59,7 +59,7 @@ const WorkbenchMeasurements = ({ app, design, gist, updateGist, gistReady }) =>
|
|||
<h2>{t('cfp:preloadMeasurements')}</h2>
|
||||
<Tabs tabs="Adults, Dolls, Giants">
|
||||
{Object.keys(groups).map(group => (
|
||||
<Tab tabId={group}>
|
||||
<Tab tabId={group} key={group}>
|
||||
{Object.keys(icons).map(type => (
|
||||
<React.Fragment key={type}>
|
||||
<h4 className="mt-4">{t(type)}</h4>
|
||||
|
|
|
@ -5,7 +5,7 @@ import Option from './option'
|
|||
import { Ul, Details, TopSummary, TopSumTitle } from 'shared/components/workbench/menu'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import { optionsMenuStructure } from 'shared/utils.mjs'
|
||||
import { adult, doll, giant, measurements } from '@freesewing/models'
|
||||
import { adult, doll, giant } from '@freesewing/models'
|
||||
|
||||
const groups = { adult, doll, giant }
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
import { linkClasses } from 'shared/components/navigation/primary.js'
|
||||
import { Li, SumButton, SumDiv } from 'shared/components/workbench/menu'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
|
||||
const Option = props => {
|
||||
const { t } = useTranslation([`o_${props.design.config.data.name}`, 'workbench'])
|
||||
const active = (
|
||||
props.sampleSettings?.type === 'option' &&
|
||||
props.active === props.option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue