diff options
author | Vitaly Takmazov | 2018-08-28 16:06:30 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 1068ba623d2f8b6f7e89f5a4db2c9a54f20a26f0 (patch) | |
tree | 4b2402c1d718584449535acade8235a262c9a934 /vnext/src/components/Contact.js | |
parent | 7e08830d9ed55e77d7242106dcd1c3dd5bc4488b (diff) |
React.Fragment short syntax (requires babel 7)
Diffstat (limited to 'vnext/src/components/Contact.js')
-rw-r--r-- | vnext/src/components/Contact.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Contact.js b/vnext/src/components/Contact.js index 215f579b..1a45c053 100644 --- a/vnext/src/components/Contact.js +++ b/vnext/src/components/Contact.js @@ -8,10 +8,10 @@ export default class Contact extends React.Component { render() { const { user } = this.props; return ( - <React.Fragment> + <> <Avatar user={user} link={`/pm/${user.uname}`} /> {user.uname }{ user.unreadCount && <span className="badge">{user.unreadCount}</span>} - </React.Fragment> + </> ); } } |