Exclude invalid recent emoji, simplify items redux structure

This commit is contained in:
Scott Nonnenberg 2019-05-29 15:48:43 -07:00
parent 46b4cf56a3
commit 86a38d2f2b
4 changed files with 16 additions and 5 deletions

View file

@ -112,6 +112,10 @@ export const dataByCategory = mapValues(
arr => sortBy(arr, 'sort_order')
);
export function isShortNameValid(shortName: string) {
return Boolean(dataByShortName[shortName]);
}
export function getSheetCoordinates(
shortName: keyof typeof dataByShortName,
skinTone?: SkinToneKey | number