chore(components): Fixed linter warnings
This commit is contained in:
parent
de0ee0d8e7
commit
308fd6afa3
5 changed files with 5 additions and 13 deletions
|
@ -4,7 +4,7 @@ import Event from './event'
|
|||
const DraftEvents = ({ events }) => (
|
||||
<div className="draft-events">
|
||||
{['error', 'warning', 'debug'].map((type) => (
|
||||
<div className={`events-${type}`}>
|
||||
<div className={`events-${type}`} id={type}>
|
||||
{events[type].map((event, index) => (
|
||||
<Event event={event} type={type} key={index} />
|
||||
))}
|
||||
|
|
|
@ -3,7 +3,6 @@ import Draft from '../../Draft'
|
|||
import Zoombox from '../Zoombox'
|
||||
import Design from '../Design'
|
||||
import DraftConfigurator from '../../DraftConfigurator'
|
||||
import { FormattedMessage } from 'react-intl'
|
||||
import Prism from 'prismjs'
|
||||
import fileSaver from 'file-saver'
|
||||
import theme from '@freesewing/plugin-theme'
|
||||
|
@ -101,11 +100,6 @@ const DraftPattern = (props) => {
|
|||
}
|
||||
}
|
||||
|
||||
let gist = Prism.highlight(
|
||||
JSON.stringify(props.gist, null, 2),
|
||||
Prism.languages.javascript,
|
||||
'javascript'
|
||||
)
|
||||
let iconProps = {
|
||||
size: 'small',
|
||||
style: styles.icon,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue