|
|
|
@ -7,8 +7,6 @@ import classNames from 'classnames';
|
|
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
|
|
import { supportsPassiveEvents } from 'detect-passive-events';
|
|
|
|
|
import { buildCustomEmojis } from '../../emoji/emoji';
|
|
|
|
|
import { join } from 'path';
|
|
|
|
|
import { FE_SUBDIRECTORY } from 'soapbox/build_config';
|
|
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
|
emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' },
|
|
|
|
@ -29,7 +27,7 @@ const messages = defineMessages({
|
|
|
|
|
|
|
|
|
|
let EmojiPicker, Emoji; // load asynchronously
|
|
|
|
|
|
|
|
|
|
const backgroundImageFn = () => join(FE_SUBDIRECTORY, 'emoji', 'sheet_13.png');
|
|
|
|
|
const backgroundImageFn = () => require('emoji-datasource/img/twitter/sheets/32.png');
|
|
|
|
|
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
|
|
|
|
|
|
|
|
|
const categoriesSort = [
|
|
|
|
@ -358,8 +356,8 @@ class EmojiPickerDropdown extends React.PureComponent {
|
|
|
|
|
<div ref={this.setTargetRef} className='emoji-button' title={title} aria-label={title} aria-expanded={active} role='button' onClick={this.onToggle} onKeyDown={this.onToggle} tabIndex={0}>
|
|
|
|
|
<img
|
|
|
|
|
className={classNames('emojione', { 'pulse-loading': active && loading })}
|
|
|
|
|
alt='🙂'
|
|
|
|
|
src={join(FE_SUBDIRECTORY, 'emoji', '1f602.svg')}
|
|
|
|
|
alt='😂'
|
|
|
|
|
src={require('twemoji/assets/svg/1f602.svg')}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|