You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
clear up if statement to make it more readable
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -389,16 +389,14 @@ const RoomSubList = React.createClass({
|
|||||||
</Droppable> : subListContent;
|
</Droppable> : subListContent;
|
||||||
} else {
|
} else {
|
||||||
const Loader = sdk.getComponent("elements.Spinner");
|
const Loader = sdk.getComponent("elements.Spinner");
|
||||||
if (this.props.showSpinner && !this.state.hidden) {
|
if (this.props.showSpinner) {
|
||||||
content = <Loader />;
|
content = <Loader />;
|
||||||
} else if (this.state.hidden) {
|
}
|
||||||
content = undefined;
|
|
||||||
} // else show content calculated above
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomSubList">
|
<div className="mx_RoomSubList">
|
||||||
{this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined}
|
{this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined}
|
||||||
{ content }
|
{ this.state.hidden ? undefined : content }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user