prettier
parent
4404e71264
commit
9bab24f3c6
|
@ -116,7 +116,7 @@ function getData(emoji, skin, set, data) {
|
||||||
if (!variationData.variations && emojiData.variations) {
|
if (!variationData.variations && emojiData.variations) {
|
||||||
delete emojiData.variations
|
delete emojiData.variations
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(set &&
|
(set &&
|
||||||
(variationData[`has_img_${set}`] == undefined ||
|
(variationData[`has_img_${set}`] == undefined ||
|
||||||
|
@ -124,7 +124,7 @@ function getData(emoji, skin, set, data) {
|
||||||
!set
|
!set
|
||||||
) {
|
) {
|
||||||
emojiData.skin_tone = skin
|
emojiData.skin_tone = skin
|
||||||
|
|
||||||
for (let k in variationData) {
|
for (let k in variationData) {
|
||||||
let v = variationData[k]
|
let v = variationData[k]
|
||||||
emojiData[k] = v
|
emojiData[k] = v
|
||||||
|
|
|
@ -14,12 +14,7 @@ const EmojiPropTypes = {
|
||||||
sheetSize: PropTypes.oneOf([16, 20, 32, 64]),
|
sheetSize: PropTypes.oneOf([16, 20, 32, 64]),
|
||||||
sheetColumns: PropTypes.number,
|
sheetColumns: PropTypes.number,
|
||||||
sheetRows: PropTypes.number,
|
sheetRows: PropTypes.number,
|
||||||
set: PropTypes.oneOf([
|
set: PropTypes.oneOf(['apple', 'google', 'twitter', 'facebook']),
|
||||||
'apple',
|
|
||||||
'google',
|
|
||||||
'twitter',
|
|
||||||
'facebook',
|
|
||||||
]),
|
|
||||||
size: PropTypes.number.isRequired,
|
size: PropTypes.number.isRequired,
|
||||||
emoji: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
|
emoji: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue