Skip to content

Commit

Permalink
feat(ratings): restore (dis)likes count on NoticeDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
JalilArfaoui committed May 20, 2019
1 parent b68b0f2 commit 501cac1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/organisms/NoticeDetails/NoticeDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class NoticeDetails extends PureComponent<
created,
contributor,
source,
ratings: { likes, dislikes },
state: { liked, disliked, dismissed }
}
} = this.props;
Expand All @@ -94,9 +95,11 @@ class NoticeDetails extends PureComponent<
<Feedbacks>
<Button onClick={this.handleLikeClick}>
<Like active={liked} />
{likes}
</Button>
<Button onClick={this.handleDislikeClick}>
<Dislike active={disliked} />
{dislikes}
</Button>
</Feedbacks>

Expand Down

0 comments on commit 501cac1

Please sign in to comment.