You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Wrap multiline JSX in parens
This commit is contained in:
@@ -145,16 +145,20 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
if (imageUrl === this.state.defaultImageUrl) {
|
if (imageUrl === this.state.defaultImageUrl) {
|
||||||
const initialLetter = this._getInitialLetter(name);
|
const initialLetter = this._getInitialLetter(name);
|
||||||
const textNode = <EmojiText className="mx_BaseAvatar_initial" aria-hidden="true"
|
const textNode = (
|
||||||
|
<EmojiText className="mx_BaseAvatar_initial" aria-hidden="true"
|
||||||
style={{ fontSize: (width * 0.65) + "px",
|
style={{ fontSize: (width * 0.65) + "px",
|
||||||
width: width + "px",
|
width: width + "px",
|
||||||
lineHeight: height + "px" }}
|
lineHeight: height + "px" }}
|
||||||
>
|
>
|
||||||
{initialLetter}
|
{initialLetter}
|
||||||
</EmojiText>;
|
</EmojiText>
|
||||||
const imgNode = <img className="mx_BaseAvatar_image" src={imageUrl}
|
);
|
||||||
|
const imgNode = (
|
||||||
|
<img className="mx_BaseAvatar_image" src={imageUrl}
|
||||||
alt="" title={title} onError={this.onError}
|
alt="" title={title} onError={this.onError}
|
||||||
width={width} height={height} />;
|
width={width} height={height} />
|
||||||
|
);
|
||||||
if (onClick != null) {
|
if (onClick != null) {
|
||||||
return (
|
return (
|
||||||
<AccessibleButton element='span' className="mx_BaseAvatar"
|
<AccessibleButton element='span' className="mx_BaseAvatar"
|
||||||
|
|||||||
Reference in New Issue
Block a user