Adding keyboard selection of comments.

This commit is contained in:
David Jay
2017-03-02 15:19:33 -05:00
parent 7be3b05f22
commit 78be17ec6d
6 changed files with 19 additions and 73 deletions
@@ -7,7 +7,7 @@ import I18n from 'coral-framework/modules/i18n/i18n';
import translations from 'coral-admin/src/translations';
const lang = new I18n(translations);
const ModerationQueue = ({comments, ...props}) => {
const ModerationQueue = ({comments, selectedIndex, ...props}) => {
return (
<div id="moderationList">
<ul style={{paddingLeft: 0}}>
@@ -20,6 +20,7 @@ const ModerationQueue = ({comments, ...props}) => {
index={i}
comment={comment}
commentType={props.activeTab}
selected={i === selectedIndex}
suspectWords={props.suspectWords}
actions={actionsMap[status]}
showBanUserDialog={props.showBanUserDialog}