The code powering m.abunchtell.com https://m.abunchtell.com
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

25 righe
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);