Skip to content

Commit 38140ee

Browse files
committed
Remove likes btn from comment component
1 parent ec4a366 commit 38140ee

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

frontend/src/components/view/tweet/Comment.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
{{ comment.created | createdDate }}
2020
</small>
2121
</p>
22-
<nav class="level is-mobile">
23-
<div class="level-left">
24-
<a class="level-item">
25-
<span class="icon is-medium has-text-info">
26-
<font-awesome-icon icon="heart" />
27-
</span>
28-
{{ comment.likesCount }}
29-
</a>
30-
</div>
31-
</nav>
3222
</div>
3323
</div>
3424
</article>

frontend/src/services/Normalizer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export const commentMapper = comment => ({
1414
created: comment.created_at,
1515
updated: comment.updated_at,
1616
author: userMapper(comment.author),
17-
// @todo fix backend api
18-
likesCount: comment.likes_count || 0
17+
likesCount: comment.likes_count
1918
});
2019

2120
export const tweetMapper = tweet => ({

0 commit comments

Comments
 (0)