Implement suspend user components

This commit is contained in:
Chi Vinh Le
2017-05-15 22:28:04 +07:00
parent d8e7b25d0e
commit 63fa3c4de7
25 changed files with 770 additions and 60 deletions
@@ -16,6 +16,7 @@ class ModerationQueue extends React.Component {
suspectWords: PropTypes.arrayOf(PropTypes.string).isRequired,
currentAsset: PropTypes.object,
showBanUserDialog: PropTypes.func.isRequired,
showSuspendUserDialog: PropTypes.func.isRequired,
rejectComment: PropTypes.func.isRequired,
acceptComment: PropTypes.func.isRequired,
comments: PropTypes.array.isRequired
@@ -51,6 +52,7 @@ class ModerationQueue extends React.Component {
bannedWords={props.bannedWords}
actions={actionsMap[status]}
showBanUserDialog={props.showBanUserDialog}
showSuspendUserDialog={props.showSuspendUserDialog}
acceptComment={props.acceptComment}
rejectComment={props.rejectComment}
currentAsset={props.currentAsset}