Conform to new react and typescript eslint rules

This commit is contained in:
Michael Telatynski 2021-07-19 22:43:11 +01:00
parent b6feaf74bc
commit ce78cdf4ad
266 changed files with 1992 additions and 2000 deletions

View file

@ -238,7 +238,7 @@ class EmojiPicker extends React.Component<IProps, IState> {
}}
onScroll={this.onScroll}
>
{this.categories.map(category => {
{ this.categories.map(category => {
const emojis = this.memoizedDataByCategory[category.id];
const categoryElement = ((
<Category
@ -258,9 +258,9 @@ class EmojiPicker extends React.Component<IProps, IState> {
const height = EmojiPicker.categoryHeightForEmojiCount(emojis.length);
heightBefore += height;
return categoryElement;
})}
}) }
</AutoHideScrollbar>
{this.state.previewEmoji || !this.props.showQuickReactions
{ this.state.previewEmoji || !this.props.showQuickReactions
? <Preview emoji={this.state.previewEmoji} />
: <QuickReactions onClick={this.onClickEmoji} selectedEmojis={this.props.selectedEmojis} /> }
</div>