diff options
author | Vitaly Takmazov | 2018-11-05 17:56:31 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | c5804817f1884257661e19ff5e03070558a5f80b (patch) | |
tree | f614f441ef619d59e17fc89386527bb1757d77a8 /vnext/src/components | |
parent | 02b746cb6349512e9f7ba47f5a86c81981215149 (diff) |
Code cleanup
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/Contact.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/vnext/src/components/Contact.js b/vnext/src/components/Contact.js index 787acd57..4b8901a8 100644 --- a/vnext/src/components/Contact.js +++ b/vnext/src/components/Contact.js @@ -3,14 +3,12 @@ import { UserType } from './Types'; import Avatar from './Avatar'; -const Contact = React.memo(({user, ...rest}) => { +const Contact = React.memo(({ user, ...rest }) => { return ( - <> - <Avatar user={user} link={`/pm/${user.uname}`}> - {user.unreadCount && <span className="badge">{user.unreadCount}</span>} - <div className="msg-ts">{user.lastMessageText}</div> - </Avatar> - </> + <Avatar user={user} link={`/pm/${user.uname}`}> + {user.unreadCount && <span className="badge">{user.unreadCount}</span>} + <div className="msg-ts">{user.lastMessageText}</div> + </Avatar> ); }); |