File size: 451 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { connect } from 'react-redux';
import { withRouter } from "react-router-dom";
import FriendIndex from './friend_index';
import { requestUserFriends } from '../../actions/user_actions';
const mapStateToProps = (state, ownProps) => ({
});
const mapDispatchToProps = dispatch => ({
requestUserFriends: userId => dispatch(requestUserFriends(userId))
});
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(FriendIndex)); |