Skip to content

Commit 4181674

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

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

baselayer

Submodule baselayer updated 1 file

static/js/components/FoldableRow.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
* The second element can be, e.g., another row in the table.
99
* */
1010

11-
import React, { Component, PropTypes } from 'react';
11+
import React, { Component } from 'react';
12+
import PropTypes from 'prop-types';
1213
import colorScheme from './colorscheme';
1314

1415
const cs = colorScheme;

static/js/components/Plot.jsx

Lines changed: 3 additions & 2 deletions
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

Lines changed: 2 additions & 1 deletion
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/Projects.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import { connect } from 'react-redux';
34
import { reduxForm } from 'redux-form';
45

static/js/components/UserProfile.jsx

Lines changed: 3 additions & 2 deletions
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)