Skip to content

Commit

Permalink
perf: reduce size of emoji-mart dep using fork (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Dec 18, 2018
1 parent e6ca246 commit cd44e33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"compression": "^1.7.3",
"cross-env": "^5.2.0",
"css-loader": "^2.0.1",
"emoji-mart": "^2.9.2",
"emoji-mart": "github:nolanlawson/emoji-mart#for-pinafore-1",
"emoji-regex": "^7.0.1",
"encoding": "^0.1.12",
"escape-html": "^1.0.3",
Expand Down
4 changes: 0 additions & 4 deletions src/routes/_components/dialog/components/EmojiDialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
background-repeat: no-repeat;
background-position: center center;
}
:global(.emoji-container .emoji-mart-emoji-native) {
/* remove if/when https://github.com/missive/emoji-mart/pull/256 is merged */
font-family: PinaforeEmoji, sans-serif;
}
</style>
<script>
import ModalDialog from './ModalDialog.html'
Expand Down
2 changes: 1 addition & 1 deletion src/routes/_react/createEmojiMartPickerFromData.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// using `remount` to pass in functions as attributes, since everything is stringified. So
// I just fire a global event here when an emoji is clicked.

import NimblePicker from 'emoji-mart/dist-es/components/picker/nimble-picker'
import NimblePicker from 'emoji-mart/dist-modern/components/picker/nimble-picker'
import React from 'react'
import { emit } from '../_utils/eventBus'

Expand Down

0 comments on commit cd44e33

Please sign in to comment.