Fixed eslint error and copyright header

This commit is contained in:
Steffen Kolmer 2021-08-28 13:56:08 +02:00
parent d76adde1ab
commit 9fdc5659b7
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -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);