From e7a32faf648fe6f6d0231a8159d2cdcc87cb1f13 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Feb 2017 18:47:24 +0000 Subject: [PATCH] Wrap multiline JSX in parens --- src/components/views/avatars/BaseAvatar.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/components/views/avatars/BaseAvatar.js b/src/components/views/avatars/BaseAvatar.js index 70c0ed3eae..65730be40b 100644 --- a/src/components/views/avatars/BaseAvatar.js +++ b/src/components/views/avatars/BaseAvatar.js @@ -145,16 +145,20 @@ module.exports = React.createClass({ if (imageUrl === this.state.defaultImageUrl) { const initialLetter = this._getInitialLetter(name); - const textNode = ; - const imgNode = + {initialLetter} + + ); + const imgNode = ( + ; + width={width} height={height} /> + ); if (onClick != null) { return (