The code powering m.abunchtell.com https://m.abunchtell.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

16 lignes
616 B

  1. import { connect } from 'react-redux';
  2. import ConversationsList from '../components/conversations_list';
  3. import { expandConversations } from '../../../actions/conversations';
  4. const mapStateToProps = state => ({
  5. conversationIds: state.getIn(['conversations', 'items']).map(x => x.get('id')),
  6. isLoading: state.getIn(['conversations', 'isLoading'], true),
  7. hasMore: state.getIn(['conversations', 'hasMore'], false),
  8. });
  9. const mapDispatchToProps = dispatch => ({
  10. onLoadMore: maxId => dispatch(expandConversations({ maxId })),
  11. });
  12. export default connect(mapStateToProps, mapDispatchToProps)(ConversationsList);