The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
883 B

  1. import { connect } from 'react-redux';
  2. import PureRenderMixin from 'react-addons-pure-render-mixin';
  3. import StatusListContainer from '../ui/containers/status_list_container';
  4. import Column from '../ui/components/column';
  5. import { refreshTimeline } from '../../actions/timelines';
  6. import { injectIntl } from 'react-intl';
  7. const MentionsTimeline = React.createClass({
  8. propTypes: {
  9. dispatch: React.PropTypes.func.isRequired
  10. },
  11. mixins: [PureRenderMixin],
  12. componentWillMount () {
  13. this.props.dispatch(refreshTimeline('mentions'));
  14. },
  15. render () {
  16. const { intl } = this.props;
  17. return (
  18. <Column icon='at' heading={intl.formatMessage({ id: 'column.mentions', defaultMessage: 'Mentions' })}>
  19. <StatusListContainer {...this.props} type='mentions' />
  20. </Column>
  21. );
  22. },
  23. });
  24. export default connect()(injectIntl(MentionsTimeline));