1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-29 01:15:48 +02:00

lint(error): make lint happy

This commit is contained in:
Corinne Krych 2018-02-16 21:18:20 +01:00
parent bfee62ed82
commit aa3fb71dc3
6 changed files with 9 additions and 7 deletions

View File

@ -27,7 +27,7 @@ class ArchiveList extends Component {
))} ))}
</span> </span>
); );
debugger;
return strategiesList; return strategiesList;
} }
renderStrategiesInList(feature) { renderStrategiesInList(feature) {

View File

@ -182,4 +182,4 @@ export function calc(value, total, decimal) {
} }
export function getDisplayName(WrappedComponent) { export function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component'; return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}; }

View File

@ -21,14 +21,14 @@ test('renders correctly with 0% done no fallback', () => {
test('renders correctly with 15% done with fallback', () => { test('renders correctly with 15% done with fallback', () => {
const percent = 15; const percent = 15;
const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback={true} />); const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback />);
expect(tree).toMatchSnapshot(); expect(tree).toMatchSnapshot();
}); });
test('renders correctly with 0% done with fallback', () => { test('renders correctly with 0% done with fallback', () => {
const percent = 0; const percent = 0;
const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback={true} />); const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback />);
expect(tree).toMatchSnapshot(); expect(tree).toMatchSnapshot();
}); });

View File

@ -14,7 +14,7 @@ const trim = value => {
}; };
class AddFeatureComponent extends Component { class AddFeatureComponent extends Component {
//static displayName = `AddFeatureComponent-${getDisplayName(Component)}`; // static displayName = `AddFeatureComponent-${getDisplayName(Component)}`;
componentWillMount() { componentWillMount() {
// TODO unwind this stuff // TODO unwind this stuff
if (this.props.initCallRequired === true) { if (this.props.initCallRequired === true) {

View File

@ -5,7 +5,7 @@ import StrategiesSection from './strategies-section-container';
import { FormButtons } from './../../common'; import { FormButtons } from './../../common';
class UpdateFeatureComponent extends Component { class UpdateFeatureComponent extends Component {
//static displayName = `UpdateFeatureComponent-{getDisplayName(Component)}`; // static displayName = `UpdateFeatureComponent-{getDisplayName(Component)}`;
componentWillMount() { componentWillMount() {
// TODO unwind this stuff // TODO unwind this stuff
if (this.props.initCallRequired === true) { if (this.props.initCallRequired === true) {

View File

@ -67,7 +67,9 @@ export default class InputList extends Component {
label="Add list entry" label="Add list entry"
onFocus={this.onFocus.bind(this)} onFocus={this.onFocus.bind(this)}
onBlur={this.onBlur.bind(this)} onBlur={this.onBlur.bind(this)}
ref={(input) => { this.textInput = input; }} ref={input => {
this.textInput = input;
}}
/> />
<IconButton <IconButton
name="add" name="add"