Fixed eslint error and copyright header
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2016 OpenMarket Ltd
|
||||
Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -124,7 +124,11 @@ export default class EventTilePreview extends React.Component<IProps, IState> {
|
||||
"mx_GroupLayout": this.props.layout == Layout.Group,
|
||||
});
|
||||
|
||||
if (!this.props.userId) return <div className={classnames("mx_EventTilePreview_loader", className)}><Spinner /></div>;
|
||||
if (!this.props.userId) {
|
||||
return <div className={classnames("mx_EventTilePreview_loader", className)}>
|
||||
<Spinner />
|
||||
</div>;
|
||||
}
|
||||
|
||||
const event = this.fakeEvent(this.state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user