mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
IT removes duplicated code.
This commit is contained in:
@@ -28,10 +28,3 @@ export const hideBanUserDialog = (showDialog) => {
|
||||
dispatch({type: 'HIDE_BANUSER_DIALOG', showDialog});
|
||||
};
|
||||
};
|
||||
|
||||
export const banUser = (status, userId, commentId) => {
|
||||
return dispatch => {
|
||||
dispatch({type: 'USER_BAN', status, userId, commentId});
|
||||
dispatch({type: 'COMMENTS_MODERATION_QUEUE_FETCH'});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user