1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01: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>
);
debugger;
return strategiesList;
}
renderStrategiesInList(feature) {

View File

@ -182,4 +182,4 @@ export function calc(value, total, decimal) {
}
export function getDisplayName(WrappedComponent) {
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', () => {
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();
});
test('renders correctly with 0% done with fallback', () => {
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();
});

View File

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

View File

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

View File

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