diff --git a/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx b/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx index 3a1c5ea384..ee565390a3 100644 --- a/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx @@ -12,15 +12,11 @@ import Overlay from 'react-overlays/Overlay'; import MoodIcon from '@/material-icons/400-20px/mood.svg?react'; import { IconButton } from 'flavours/glitch/components/icon_button'; -import emojiCompressed from 'flavours/glitch/features/emoji/emoji_compressed'; import { useSystemEmojiFont } from 'flavours/glitch/initial_state'; -import { assetHost } from 'flavours/glitch/utils/config'; import { buildCustomEmojis, categoriesFromEmojis } from '../../emoji/emoji'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; -const nimblePickerData = emojiCompressed[5]; - const messages = defineMessages({ emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' }, emoji_search: { id: 'emoji_button.search', defaultMessage: 'Search...' }, @@ -41,19 +37,11 @@ let EmojiPicker, Emoji; // load asynchronously const listenerOptions = supportsPassiveEvents ? { passive: true, capture: true } : true; -const backgroundImageFn = () => `${assetHost}/emoji/sheet_15_1.png`; - const notFoundFn = () => (
@@ -111,12 +99,12 @@ class ModifierPickerMenu extends PureComponent { return (
- - - - - - + + + + + +
); } @@ -151,7 +139,7 @@ class ModifierPicker extends PureComponent { return (
- +
); @@ -287,16 +275,11 @@ class EmojiPickerMenuImpl extends PureComponent { return (
`${assetHost}/emoji/sheet_15_1.png`; + +const Emoji = ({ + set = 'twitter', + sheetSize = 32, + sheetColumns = 62, + sheetRows = 62, + backgroundImageFn = backgroundImageFnDefault, + ...props +}: EmojiProps) => { + return ( + + ); +}; + +const Picker = ({ + set = 'twitter', + sheetSize = 32, + sheetColumns = 62, + sheetRows = 62, + backgroundImageFn = backgroundImageFnDefault, + ...props +}: PickerProps) => { + return ( + + ); +}; + +export { Picker, Emoji };