Skip to content

Commit

Permalink
De-lint JS sources
Browse files Browse the repository at this point in the history
  • Loading branch information
acrellin committed Sep 14, 2018
1 parent 33095e7 commit fe8018c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion static/js/components/FoldableRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
* The second element can be, e.g., another row in the table.
* */

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import colorScheme from './colorscheme';

const cs = colorScheme;
Expand Down
5 changes: 3 additions & 2 deletions static/js/components/Plot.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { showNotification } from 'baselayer/components/Notifications';
/* eslint-disable */
Expand Down Expand Up @@ -71,8 +72,8 @@ class Plot extends Component {
}
}
Plot.propTypes = {
url: React.PropTypes.string.isRequired,
dispatch: React.PropTypes.func.isRequired
url: PropTypes.string.isRequired,
dispatch: PropTypes.func.isRequired
};

Plot = connect()(Plot);
Expand Down
3 changes: 2 additions & 1 deletion static/js/components/Progress.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';

const Progress = (props) => {
let response = '';
Expand All @@ -25,7 +26,7 @@ const Progress = (props) => {
};

Progress.propTypes = {
type: React.PropTypes.string.isRequired
type: PropTypes.string.isRequired
};

export default Progress;
3 changes: 2 additions & 1 deletion static/js/components/Projects.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { reduxForm } from 'redux-form';

Expand Down
5 changes: 3 additions & 2 deletions static/js/components/UserProfile.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';

let UserProfile = props => (
<div style={props.style}>{props.profile.username}</div>
);
UserProfile.propTypes = {
style: React.PropTypes.object.isRequired,
profile: React.PropTypes.object.isRequired
style: PropTypes.object.isRequired,
profile: PropTypes.object.isRequired
};

const mapStateToProps = state => (
Expand Down

0 comments on commit fe8018c

Please sign in to comment.