mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Adding proptypes as a package, and linting
This commit is contained in:
@@ -143,7 +143,8 @@ export default class Moderation extends Component {
|
||||
searchVisible={this.props.moderation.storySearchVisible}
|
||||
openSearch={this.openSearch}
|
||||
closeSearch={this.closeSearch}
|
||||
asset={asset} />
|
||||
asset={asset}
|
||||
/>
|
||||
<ModerationMenu
|
||||
asset={asset}
|
||||
allCount={root.allCount}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import React, {PropTypes} from 'react';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import styles from './StorySearch.css';
|
||||
import {Button, Spinner, Icon} from 'coral-ui';
|
||||
import {withRouter} from 'react-router';
|
||||
@@ -69,8 +70,10 @@ const StorySearch = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
// StorySearch.propTypes = {
|
||||
// storySearchChange: PropTypes.func.isRequired
|
||||
// };
|
||||
StorySearch.propTypes = {
|
||||
handleSearchChange: PropTypes.func.isRequired,
|
||||
search: PropTypes.func.isRequired,
|
||||
moderation: PropTypes.object.isRequired
|
||||
};
|
||||
|
||||
export default withRouter(StorySearch);
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@
|
||||
"passport": "^0.3.2",
|
||||
"passport-jwt": "^2.2.1",
|
||||
"passport-local": "^1.0.0",
|
||||
"prop-types": "^15.5.8",
|
||||
"prop-types": "^15.5.10",
|
||||
"react-apollo": "^1.1.0",
|
||||
"react-recaptcha": "^2.2.6",
|
||||
"react-toastify": "^1.5.0",
|
||||
|
||||
Reference in New Issue
Block a user