dependabot/npm_and_yarn/websocket-extensions-0.1.4
Thomas Piard 2020-01-26 19:23:41 +01:00 committed by Etienne Lemay
parent 4404e71264
commit 9bab24f3c6
2 changed files with 3 additions and 8 deletions

View File

@ -116,7 +116,7 @@ function getData(emoji, skin, set, data) {
if (!variationData.variations && emojiData.variations) {
delete emojiData.variations
}
if (
(set &&
(variationData[`has_img_${set}`] == undefined ||
@ -124,7 +124,7 @@ function getData(emoji, skin, set, data) {
!set
) {
emojiData.skin_tone = skin
for (let k in variationData) {
let v = variationData[k]
emojiData[k] = v

View File

@ -14,12 +14,7 @@ const EmojiPropTypes = {
sheetSize: PropTypes.oneOf([16, 20, 32, 64]),
sheetColumns: PropTypes.number,
sheetRows: PropTypes.number,
set: PropTypes.oneOf([
'apple',
'google',
'twitter',
'facebook',
]),
set: PropTypes.oneOf(['apple', 'google', 'twitter', 'facebook']),
size: PropTypes.number.isRequired,
emoji: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
}