diff --git a/client/coral-embed-stream/src/actions/comment.js b/client/coral-embed-stream/src/actions/comment.js new file mode 100644 index 000000000..574d66267 --- /dev/null +++ b/client/coral-embed-stream/src/actions/comment.js @@ -0,0 +1,11 @@ +import {ADD_CLASSNAME, REMOVE_CLASSNAME} from '../constants/comment'; + +export const addClassName = (className) => ({ + type: ADD_CLASSNAME, + className +}); + +export const removeClassName = (idx) => ({ + type: REMOVE_CLASSNAME, + idx +}); diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js index d8410becd..3b8b8b08d 100644 --- a/client/coral-embed-stream/src/components/Comment.js +++ b/client/coral-embed-stream/src/components/Comment.js @@ -1,4 +1,6 @@ import React, {PropTypes} from 'react'; +import {connect} from 'react-redux'; +import cn from 'classnames'; import PermalinkButton from 'coral-plugin-permalinks/PermalinkButton'; import AuthorName from 'coral-plugin-author-name/AuthorName'; @@ -19,7 +21,6 @@ import Slot from 'coral-framework/components/Slot'; import LoadMore from './LoadMore'; import IgnoredCommentTombstone from './IgnoredCommentTombstone'; import {TopRightMenu} from './TopRightMenu'; -import classnames from 'classnames'; import {EditableCommentContent} from './EditableCommentContent'; import {getActionSummary, iPerformedThisAction} from 'coral-framework/utils'; import {getEditableUntilDate} from './util'; @@ -151,28 +152,29 @@ class Comment extends React.Component { } render () { const { - comment, - parentId, - currentUser, asset, depth, - postComment, - addNotification, - showSignInDialog, - highlighted, + comment, postFlag, - postDontAgree, + parentId, loadMore, - setActiveReplyBox, - activeReplyBox, - deleteAction, - addCommentTag, - removeCommentTag, ignoreUser, + highlighted, + postComment, + currentUser, + deleteAction, disableReply, - commentIsIgnored, maxCharCount, - charCountEnable + postDontAgree, + addCommentTag, + activeReplyBox, + addNotification, + charCountEnable, + classNames = [], + showSignInDialog, + removeCommentTag, + commentIsIgnored, + setActiveReplyBox, } = this.props; const flagSummary = getActionSummary('FlagActionSummary', comment); @@ -226,7 +228,7 @@ class Comment extends React.Component { return (