Disable skin tones for reaction emoji

This commit is contained in:
Ken Powers 2020-05-11 19:14:02 -04:00 committed by GitHub
parent a7e8b9e655
commit 5c6a474ec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 26 deletions

View file

@ -14,8 +14,11 @@ import { LocalizerType } from '../../types/Util';
export const SmartEmojiPicker = React.forwardRef<
HTMLDivElement,
Pick<EmojiPickerProps, 'onPickEmoji' | 'onClose' | 'style'>
>(({ onPickEmoji, onClose, style }, ref) => {
Pick<
EmojiPickerProps,
'onPickEmoji' | 'onClose' | 'style' | 'disableSkinTones'
>
>(({ onPickEmoji, onClose, style, disableSkinTones }, ref) => {
const i18n = useSelector<StateType, LocalizerType>(getIntl);
const skinTone = useSelector<StateType, number>(state =>
get(state, ['items', 'skinTone'], 0)
@ -52,6 +55,7 @@ export const SmartEmojiPicker = React.forwardRef<
recentEmojis={recentEmojis}
onClose={onClose}
style={style}
disableSkinTones={disableSkinTones}
/>
);
});