Move the change status of the user to a ban the user func.

This commit is contained in:
gaba
2016-11-21 12:18:19 -08:00
parent 2b3da02cb7
commit 3337e95a6c
5 changed files with 72 additions and 9 deletions
+1 -2
View File
@@ -2,7 +2,6 @@
* Action disptacher related to users
*/
export const updateUserStatus = (status, id) => (dispatch, getState) => {
console.log('DEBUG ', getState);
export const updateUserStatus = (status, id) => (dispatch) => {
dispatch({type: 'USER_STATUS_UPDATE', id, status});
};