Batch of views getting replaceableComponent decorators

This commit is contained in:
Travis Ralston 2021-03-08 20:04:46 -07:00
parent c359dff738
commit fc5b1ed9d6
41 changed files with 82 additions and 0 deletions

View file

@ -21,6 +21,7 @@ import { CATEGORY_HEADER_HEIGHT, EMOJI_HEIGHT, EMOJIS_PER_ROW } from "./EmojiPic
import LazyRenderList from "../elements/LazyRenderList";
import {DATA_BY_CATEGORY, IEmoji} from "../../../emoji";
import Emoji from './Emoji';
import {replaceableComponent} from "../../../utils/replaceableComponent";
const OVERFLOW_ROWS = 3;
@ -47,6 +48,7 @@ interface IProps {
onMouseLeave(emoji: IEmoji): void;
}
@replaceableComponent("views.emojipicker.Category")
class Category extends React.PureComponent<IProps> {
private renderEmojiRow = (rowIndex: number) => {
const { onClick, onMouseEnter, onMouseLeave, selectedEmojis, emojis } = this.props;