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.
 
 
 
 

16 lines
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);