Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e7a32fa

Browse files
committed
Wrap multiline JSX in parens
1 parent 10edab0 commit e7a32fa

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/components/views/avatars/BaseAvatar.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,20 @@ module.exports = React.createClass({
145145

146146
if (imageUrl === this.state.defaultImageUrl) {
147147
const initialLetter = this._getInitialLetter(name);
148-
const textNode = <EmojiText className="mx_BaseAvatar_initial" aria-hidden="true"
149-
style={{ fontSize: (width * 0.65) + "px",
150-
width: width + "px",
151-
lineHeight: height + "px" }}
152-
>
153-
{initialLetter}
154-
</EmojiText>;
155-
const imgNode = <img className="mx_BaseAvatar_image" src={imageUrl}
148+
const textNode = (
149+
<EmojiText className="mx_BaseAvatar_initial" aria-hidden="true"
150+
style={{ fontSize: (width * 0.65) + "px",
151+
width: width + "px",
152+
lineHeight: height + "px" }}
153+
>
154+
{initialLetter}
155+
</EmojiText>
156+
);
157+
const imgNode = (
158+
<img className="mx_BaseAvatar_image" src={imageUrl}
156159
alt="" title={title} onError={this.onError}
157-
width={width} height={height} />;
160+
width={width} height={height} />
161+
);
158162
if (onClick != null) {
159163
return (
160164
<AccessibleButton element='span' className="mx_BaseAvatar"

0 commit comments

Comments
 (0)