disable eslint to use bootstrap checkbox group

This commit is contained in:
cyril lopez 2017-07-11 19:10:17 +02:00
parent d778314b85
commit cf70cd69a5
2 changed files with 1 additions and 8 deletions

View File

@ -8,14 +8,8 @@ import React from 'react';
import styles from './styles.scss';
class InputToggle extends React.Component { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props);
this.state = {
}
}
render() {
/* eslint-disable react/jsx-no-duplicate-props */
const btnClassOff = this.props.isChecked ? 'btn ' : `btn ${styles.gradientOff}`;
const btnClassOn = this.props.isChecked ? `btn ${styles.gradientOn}` : 'btn';
const customBootstrapClass = this.props.customBootstrapClass ? this.props.customBootstrapClass : 'col-md-4';

View File

@ -9,7 +9,6 @@ import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import PluginLeftMenu from 'components/PluginLeftMenu';
import InputToggle from 'components/InputToggle';
import InputText from 'components/InputText';
import selectHome from './selectors';
import styles from './styles.scss';