Skip to content

Commit

Permalink
Implement reducers for article ReactionIcons
Browse files Browse the repository at this point in the history
- Create reducer file
- Add initial state
- Update state with database response
- Update view(Component) with new data
  • Loading branch information
ibrahimalausa committed Mar 4, 2019
1 parent 825de43 commit 35c22a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/widgets/ReactionIcons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class ReactionIcons extends Component {
this.props.getTotalReactions(this.props.selectedArticleId);
};

createLikeIcon = newReaction => (
<i role="presentation" onClick={this.createReaction.bind(this, 'like', newReaction)}>
createLikeIcon = () => (
<i role="presentation" onClick={this.createReaction.bind(this, 'like')}>
<Icon disabled link size="small" fitted name="thumbs up outline" />
</i>
);
Expand Down

0 comments on commit 35c22a6

Please sign in to comment.