|
|
@ -19,7 +19,16 @@ const mapStateToProps = state => ({ |
|
|
|
accountIds: state.getIn(['user_lists', 'mutes', 'items']), |
|
|
|
}); |
|
|
|
|
|
|
|
class Mutes extends ImmutablePureComponent { |
|
|
|
@connect(mapStateToProps) |
|
|
|
@injectIntl |
|
|
|
export default class Mutes extends ImmutablePureComponent { |
|
|
|
|
|
|
|
static propTypes = { |
|
|
|
params: PropTypes.object.isRequired, |
|
|
|
dispatch: PropTypes.func.isRequired, |
|
|
|
accountIds: ImmutablePropTypes.list, |
|
|
|
intl: PropTypes.object.isRequired, |
|
|
|
}; |
|
|
|
|
|
|
|
componentWillMount () { |
|
|
|
this.props.dispatch(fetchMutes()); |
|
|
@ -59,12 +68,3 @@ class Mutes extends ImmutablePureComponent { |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Mutes.propTypes = { |
|
|
|
params: PropTypes.object.isRequired, |
|
|
|
dispatch: PropTypes.func.isRequired, |
|
|
|
accountIds: ImmutablePropTypes.list, |
|
|
|
intl: PropTypes.object.isRequired, |
|
|
|
}; |
|
|
|
|
|
|
|
export default connect(mapStateToProps)(injectIntl(Mutes)); |