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