From 44a859e744f58807a313783fe8c019c801f71052 Mon Sep 17 00:00:00 2001 From: Thomas Kam Date: Thu, 24 Oct 2024 01:31:48 -0400 Subject: [PATCH] redux connect update --- .../conversation-admin/comment-moderation/comment.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client-admin/src/components/conversation-admin/comment-moderation/comment.js b/client-admin/src/components/conversation-admin/comment-moderation/comment.js index 945f2dc30..e1c29418c 100644 --- a/client-admin/src/components/conversation-admin/comment-moderation/comment.js +++ b/client-admin/src/components/conversation-admin/comment-moderation/comment.js @@ -5,11 +5,6 @@ import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Flex, Box, Text, Button, Card, Link } from 'theme-ui' -@connect((state) => { - return { - conversation: state.zid_metadata.zid_metadata - } -}) class Comment extends React.Component { onAcceptClicked() { this.props.acceptClickHandler(this.props.comment) @@ -98,4 +93,8 @@ Comment.propTypes = { currentItem: PropTypes.bool } -export default Comment +export default connect((state) => { + return { + conversation: state.zid_metadata.zid_metadata + } +})(Comment)