Continuing updating the reformatting of propTypes and set redux, intl functions to end of component
• Removing: - the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
@@ -37,10 +37,6 @@ class ListsDirectory extends ImmutablePureComponent {
|
||||
fetched: false,
|
||||
}
|
||||
|
||||
updateOnProps = [
|
||||
'lists',
|
||||
]
|
||||
|
||||
componentDidMount() {
|
||||
this.props.onFetchLists()
|
||||
.then(() => this.setState({ fetched: true }))
|
||||
|
||||
@@ -52,12 +52,6 @@ class News extends React.PureComponent {
|
||||
activeDomain: null,
|
||||
}
|
||||
|
||||
updateOnProps = [
|
||||
'items',
|
||||
'isLoading',
|
||||
'isError',
|
||||
]
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (this.props.location !== prevProps.location) {
|
||||
this.setActiveDomain(this.props.location)
|
||||
|
||||
@@ -37,11 +37,6 @@ class Status extends ImmutablePureComponent {
|
||||
status: ImmutablePropTypes.map,
|
||||
}
|
||||
|
||||
updateOnProps = [
|
||||
'params',
|
||||
'status',
|
||||
]
|
||||
|
||||
componentDidMount() {
|
||||
const statusId = this.props.id || this.props.params.statusId
|
||||
this.props.onFetchStatus(statusId)
|
||||
|
||||
Reference in New Issue
Block a user