The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

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