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:
mgabdev
2020-08-17 19:57:35 -05:00
parent 46a0cbca7d
commit ddca693cfc
101 changed files with 2053 additions and 2140 deletions

View File

@@ -37,10 +37,6 @@ class ListsDirectory extends ImmutablePureComponent {
fetched: false,
}
updateOnProps = [
'lists',
]
componentDidMount() {
this.props.onFetchLists()
.then(() => this.setState({ fetched: true }))

View File

@@ -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)

View File

@@ -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)