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 { FormattedMessage } from 'react-intl'
|
||||
import { injectIntl } from 'react-intl'
|
||||
import RightIcon from '@material-ui/icons/KeyboardArrowRight'
|
||||
import OptionSubGroup from '../OptionSubGroup'
|
||||
|
||||
const OptionGroup = (props) => {
|
||||
|
|
|
@ -28,14 +28,6 @@ const Design = (props) => {
|
|||
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
|
||||
let info = []
|
||||
for (let part of Object.keys(props.focus)) {
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
import React, { useState } from 'react'
|
||||
import Draft from '../../Draft'
|
||||
import React from 'react'
|
||||
import Zoombox from '../Zoombox'
|
||||
import Design from '../Design'
|
||||
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 DumpIcon from '@material-ui/icons/LocalSee'
|
||||
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 CompleteIcon from '@material-ui/icons/Style'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import Events from './Events'
|
||||
import ActionsIcon from '@material-ui/icons/PlayCircleOutline'
|
||||
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 (
|
||||
<ul id='draft-config'>
|
||||
<li>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import React, { useState } from 'react'
|
||||
import React from 'react'
|
||||
import Draft from '../../Draft'
|
||||
import Zoombox from '../Zoombox'
|
||||
import Design from '../Design'
|
||||
import fileSaver from 'file-saver'
|
||||
import theme from '@freesewing/plugin-theme'
|
||||
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 Toolbar from '@material-ui/core/Toolbar'
|
||||
import Button from '@material-ui/core/Button'
|
||||
import IconButton from '@material-ui/core/IconButton'
|
||||
import Logo from '../Logo'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import Icon from '../Icon'
|
||||
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'
|
||||
|
||||
export default function ButtonAppBar(props) {
|
||||
const colors = {
|
||||
light: '#212529',
|
||||
dark: '#f8f9fa'
|
||||
}
|
||||
|
||||
const style = {
|
||||
wrapper: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue