Skip to content

Commit

Permalink
Fix formatting, remove special-case emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
ngainsboro-figma committed Jan 9, 2024
1 parent f86ccb3 commit c8814af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions packages/emoji-mart-data/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ const CATEGORIES = [
// we will remove female_sign and male_sign from this list so that they are no longer selectable
const MISSING_EMOJIS = ['medical_symbol', 'female_sign', 'male_sign']

const MISSING_ALIAS = {
// Figma's beetle emoji renders as a ladybug, which is complicated because
// beetle was introduced as a new emoji in v13 with a different image
// For now, we continue to honor our old, now incorrect shortcode. We will
// want to revisit this when we upgrade what emoji version we support
beetle: 'ladybug',
man_in_tuxedo: 'person_in_tuxedo',
}

// const KEYWORD_SUBSTITUTES = {
// highfive: 'highfive high-five',
// }
Expand Down Expand Up @@ -180,10 +171,6 @@ function buildData({ set, version } = {}) {
data.categories.unshift(smileysAndPeople)
data.categories.splice(1, 2)

for (const oldName of Object.keys(MISSING_ALIAS)) {
data.aliases[oldName] = MISSING_ALIAS[oldName]
}

if (!DRY_RUN) {
let folder = 'sets'
if (version) folder += `/${version}`
Expand Down
2 changes: 1 addition & 1 deletion packages/emoji-mart-data/sets/15/native.json

Large diffs are not rendered by default.

0 comments on commit c8814af

Please sign in to comment.