export function homePageProfileAction(list, name) {
return (dispatch) => {
dispatch(homePageProfileFetchId(list, name));
const promises = list.map(v => getUserHome(v));
Promise.all(promises)
.then((res) => {
dispatch(homePageProfileFetchSuccess(res, "top"));
})
.catch(err => {console.log(err); });
};
}