Skip to content

Commit

Permalink
redux connect update
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Oct 24, 2024
1 parent a71f8f1 commit 44a859e
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -98,4 +93,8 @@ Comment.propTypes = {
currentItem: PropTypes.bool
}

export default Comment
export default connect((state) => {
return {
conversation: state.zid_metadata.zid_metadata
}
})(Comment)

0 comments on commit 44a859e

Please sign in to comment.