From 0249ff0480c247d70b95423e2388260ee52146fa Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Fri, 5 Apr 2019 16:26:15 +0300
Subject: Drop MessageSummary
---
vnext/src/components/Message.js | 45 +++++++++++++++--------------------------
1 file changed, 16 insertions(+), 29 deletions(-)
(limited to 'vnext/src')
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index c63c5750..f19888c2 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -14,6 +14,8 @@ import './Message.css';
function Message({ data, visitor, children, ...rest }) {
const isCode = (data.tags || []).indexOf('code') >= 0;
+ const likesSummary = data.likes ? `${data.likes}` : 'Recommend';
+ const commentsSummary = data.replies ? `${data.replies}` : 'Comment';
return (
@@ -30,39 +32,40 @@ function Message({ data, visitor, children, ...rest }) {
-
-
-
- {data.photo &&
+ {
+ data.body &&
+
+
+
+ }
+ {
+ data.photo &&
}
-