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:
parent
bfee62ed82
commit
aa3fb71dc3
@ -27,7 +27,7 @@ class ArchiveList extends Component {
|
|||||||
))}
|
))}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
debugger;
|
|
||||||
return strategiesList;
|
return strategiesList;
|
||||||
}
|
}
|
||||||
renderStrategiesInList(feature) {
|
renderStrategiesInList(feature) {
|
||||||
|
@ -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';
|
||||||
};
|
}
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user