Skip to content

Commit f0e69bc

Browse files
committed
De-lint JS sources
1 parent 33095e7 commit f0e69bc

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

static/js/components/Plot.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import { connect } from 'react-redux';
34
import { showNotification } from 'baselayer/components/Notifications';
45
/* eslint-disable */
@@ -71,8 +72,8 @@ class Plot extends Component {
7172
}
7273
}
7374
Plot.propTypes = {
74-
url: React.PropTypes.string.isRequired,
75-
dispatch: React.PropTypes.func.isRequired
75+
url: PropTypes.string.isRequired,
76+
dispatch: PropTypes.func.isRequired
7677
};
7778

7879
Plot = connect()(Plot);

static/js/components/Progress.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23

34
const Progress = (props) => {
45
let response = '';
@@ -25,7 +26,7 @@ const Progress = (props) => {
2526
};
2627

2728
Progress.propTypes = {
28-
type: React.PropTypes.string.isRequired
29+
type: PropTypes.string.isRequired
2930
};
3031

3132
export default Progress;

static/js/components/UserProfile.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import { connect } from 'react-redux';
34

45
let UserProfile = props => (
56
<div style={props.style}>{props.profile.username}</div>
67
);
78
UserProfile.propTypes = {
8-
style: React.PropTypes.object.isRequired,
9-
profile: React.PropTypes.object.isRequired
9+
style: PropTypes.object.isRequired,
10+
profile: PropTypes.object.isRequired
1011
};
1112

1213
const mapStateToProps = state => (

0 commit comments

Comments
 (0)