Enable react/sort-prop-types rule

This commit is contained in:
Stuart Taylor
2017-01-12 06:54:43 +00:00
parent 72b1f4ac75
commit c96ce25598
33 changed files with 322 additions and 273 deletions

View File

@@ -27,16 +27,15 @@ const fetchOptions = {
return Array.isArray(superBlocks) && superBlocks.length > 1;
}
};
export class ShowMap extends PureComponent {
static displayName = 'Map';
static propTypes = {
superBlocks: PropTypes.array,
height: PropTypes.number,
updateTitle: PropTypes.func.isRequired,
params: PropTypes.object,
fetchChallenges: PropTypes.func.isRequired
};
const propTypes = {
fetchChallenges: PropTypes.func.isRequired,
height: PropTypes.number,
params: PropTypes.object,
superBlocks: PropTypes.array,
updateTitle: PropTypes.func.isRequired
};
export class ShowMap extends PureComponent {
componentWillMount() {
// if no params then map is open in drawer
// do not update title
@@ -81,6 +80,9 @@ export class ShowMap extends PureComponent {
}
}
ShowMap.displayName = 'Map';
ShowMap.propTypes = propTypes;
export default compose(
connect(mapStateToProps, bindableActions),
contain(fetchOptions)