Fixes React.js console errors (#7829)

This commit is contained in:
Germain 2022-02-17 11:46:19 +00:00 committed by GitHub
parent 548535be1f
commit 2160fd81c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -18,6 +18,11 @@ limitations under the License.
position: relative;
}
.mx_GenericEventListSummary_unstyledList {
list-style: none;
padding: 0;
}
.mx_TextualEvent.mx_GenericEventListSummary_summary {
font-size: $font-14px;
display: inline-flex;

View file

@ -70,7 +70,9 @@ const GenericEventListSummary: React.FC<IProps> = ({
if (events.length < threshold) {
return (
<li className="mx_GenericEventListSummary" data-scroll-tokens={eventIds} data-expanded={true} data-layout={layout}>
{ children }
<ol className="mx_GenericEventListSummary_unstyledList">
{ children }
</ol>
</li>
);
}

View file

@ -1362,6 +1362,7 @@ export default class EventTile extends React.Component<IProps, IState> {
reactionsRow = <ReactionsRow
mxEvent={this.props.mxEvent}
reactions={this.state.reactions}
key="mx_EventTile_reactionsRow"
/>;
}