chore(components): Linter fixes
This commit is contained in:
parent
dbd81dfd99
commit
4b73b5c4dd
5 changed files with 3 additions and 32 deletions
|
@ -9,7 +9,6 @@ import optionType from '@freesewing/utils/optionType'
|
||||||
import optionDefault from '@freesewing/utils/optionDefault'
|
import optionDefault from '@freesewing/utils/optionDefault'
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
import { injectIntl } from 'react-intl'
|
import { injectIntl } from 'react-intl'
|
||||||
import RightIcon from '@material-ui/icons/KeyboardArrowRight'
|
|
||||||
import OptionSubGroup from '../OptionSubGroup'
|
import OptionSubGroup from '../OptionSubGroup'
|
||||||
|
|
||||||
const OptionGroup = (props) => {
|
const OptionGroup = (props) => {
|
||||||
|
|
|
@ -28,14 +28,6 @@ const Design = (props) => {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
|
||||||
const idPathPoint = (part, a) => {
|
|
||||||
for (let p in props.parts[part].points) {
|
|
||||||
let b = props.parts[part].points[p]
|
|
||||||
if (a.x === b.x && a.y === b.y) return p
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!props.design || props.focus === null || Object.keys(props.focus).length < 1) return null
|
if (!props.design || props.focus === null || Object.keys(props.focus).length < 1) return null
|
||||||
let info = []
|
let info = []
|
||||||
for (let part of Object.keys(props.focus)) {
|
for (let part of Object.keys(props.focus)) {
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
import React, { useState } from 'react'
|
import React from 'react'
|
||||||
import Draft from '../../Draft'
|
|
||||||
import Zoombox from '../Zoombox'
|
import Zoombox from '../Zoombox'
|
||||||
import Design from '../Design'
|
import Design from '../Design'
|
||||||
import DraftConfigurator from '../../DraftConfigurator'
|
import DraftConfigurator from '../../DraftConfigurator'
|
||||||
import fileSaver from 'file-saver'
|
|
||||||
import theme from '@freesewing/plugin-theme'
|
|
||||||
import Icon from '../../Icon'
|
|
||||||
import IconButton from '@material-ui/core/IconButton'
|
|
||||||
import DesignIcon from '@material-ui/icons/Fingerprint'
|
import DesignIcon from '@material-ui/icons/Fingerprint'
|
||||||
import DumpIcon from '@material-ui/icons/LocalSee'
|
import DumpIcon from '@material-ui/icons/LocalSee'
|
||||||
import ClearIcon from '@material-ui/icons/HighlightOff'
|
import ClearIcon from '@material-ui/icons/HighlightOff'
|
||||||
|
@ -14,7 +9,6 @@ import AdvancedIcon from '@material-ui/icons/Policy'
|
||||||
import PaperlessIcon from '@material-ui/icons/Nature'
|
import PaperlessIcon from '@material-ui/icons/Nature'
|
||||||
import CompleteIcon from '@material-ui/icons/Style'
|
import CompleteIcon from '@material-ui/icons/Style'
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
import Events from './Events'
|
|
||||||
import ActionsIcon from '@material-ui/icons/PlayCircleOutline'
|
import ActionsIcon from '@material-ui/icons/PlayCircleOutline'
|
||||||
import Switch from '@material-ui/core/Switch';
|
import Switch from '@material-ui/core/Switch';
|
||||||
|
|
||||||
|
@ -43,13 +37,6 @@ const DraftPattern = (props) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let iconProps = {
|
|
||||||
size: 'small',
|
|
||||||
style: styles.icon,
|
|
||||||
color: 'inherit'
|
|
||||||
}
|
|
||||||
const color = (check) => (check ? '#40c057' : '#fa5252')
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul id='draft-config'>
|
<ul id='draft-config'>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import React, { useState } from 'react'
|
import React from 'react'
|
||||||
import Draft from '../../Draft'
|
import Draft from '../../Draft'
|
||||||
import Zoombox from '../Zoombox'
|
|
||||||
import Design from '../Design'
|
|
||||||
import fileSaver from 'file-saver'
|
import fileSaver from 'file-saver'
|
||||||
import theme from '@freesewing/plugin-theme'
|
import theme from '@freesewing/plugin-theme'
|
||||||
import Events from './Events'
|
import Events from './Events'
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
import React, { useState } from 'react'
|
import React from 'react'
|
||||||
import AppBar from '@material-ui/core/AppBar'
|
import AppBar from '@material-ui/core/AppBar'
|
||||||
import Toolbar from '@material-ui/core/Toolbar'
|
import Toolbar from '@material-ui/core/Toolbar'
|
||||||
import Button from '@material-ui/core/Button'
|
import Button from '@material-ui/core/Button'
|
||||||
import IconButton from '@material-ui/core/IconButton'
|
import IconButton from '@material-ui/core/IconButton'
|
||||||
import Logo from '../Logo'
|
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
import Icon from '../Icon'
|
import Icon from '../Icon'
|
||||||
import LanguageIcon from '@material-ui/icons/Translate'
|
import LanguageIcon from '@material-ui/icons/Translate'
|
||||||
|
@ -11,10 +10,6 @@ import LightModeIcon from '@material-ui/icons/WbSunny'
|
||||||
import DarkModeIcon from '@material-ui/icons/Brightness3'
|
import DarkModeIcon from '@material-ui/icons/Brightness3'
|
||||||
|
|
||||||
export default function ButtonAppBar(props) {
|
export default function ButtonAppBar(props) {
|
||||||
const colors = {
|
|
||||||
light: '#212529',
|
|
||||||
dark: '#f8f9fa'
|
|
||||||
}
|
|
||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
wrapper: {
|
wrapper: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue