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.
 
 
 
 

25 lines
630 B

  1. import { connect } from 'react-redux';
  2. import { cancelReplyCompose } from '../../../actions/compose';
  3. import { makeGetStatus } from '../../../selectors';
  4. import ReplyIndicator from '../components/reply_indicator';
  5. const makeMapStateToProps = () => {
  6. const getStatus = makeGetStatus();
  7. const mapStateToProps = state => ({
  8. status: getStatus(state, { id: state.getIn(['compose', 'in_reply_to']) }),
  9. });
  10. return mapStateToProps;
  11. };
  12. const mapDispatchToProps = dispatch => ({
  13. onCancel () {
  14. dispatch(cancelReplyCompose());
  15. },
  16. });
  17. export default connect(makeMapStateToProps, mapDispatchToProps)(ReplyIndicator);