aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Message.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-08-28 16:06:30 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit1068ba623d2f8b6f7e89f5a4db2c9a54f20a26f0 (patch)
tree4b2402c1d718584449535acade8235a262c9a934 /vnext/src/components/Message.js
parent7e08830d9ed55e77d7242106dcd1c3dd5bc4488b (diff)
React.Fragment short syntax (requires babel 7)
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r--vnext/src/components/Message.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index ad79f7f6..f091296b 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -64,7 +64,7 @@ export default function Message({ data, visitor, children, ...rest }) {
</a>
)}
{!data.ReadOnly | (visitor.uid === data.user.uid) && (
- <React.Fragment>
+ <>
<Link to={{ pathname: `/${data.user.uname}/${data.mid}`, state: { msg: data } }} className="a-comment msg-button">
<span className="msg-button-icon">
<Icon name="ei-comment" size="s" />
@@ -82,7 +82,7 @@ export default function Message({ data, visitor, children, ...rest }) {
<Icon name="ei-link" size="s" />
<span>&nbsp;Share</span>
</a>
- </React.Fragment>
+ </>
)}
{data.FriendsOnly && (
<a href="#" className="a-privacy">Открыть доступ</a>