|
|
@ -11,7 +11,7 @@ import Icon from 'soapbox/components/icon';
|
|
|
|
const messages = defineMessages({
|
|
|
|
const messages = defineMessages({
|
|
|
|
emoji: { id: 'icon_button.label', defaultMessage: 'Select icon' },
|
|
|
|
emoji: { id: 'icon_button.label', defaultMessage: 'Select icon' },
|
|
|
|
emoji_search: { id: 'emoji_button.search', defaultMessage: 'Search...' },
|
|
|
|
emoji_search: { id: 'emoji_button.search', defaultMessage: 'Search...' },
|
|
|
|
emoji_not_found: { id: 'emoji_button.not_found', defaultMessage: 'No emojos!! (╯°□°)╯︵ ┻━┻' },
|
|
|
|
emoji_not_found: { id: 'icon_button.not_found', defaultMessage: 'No icons!! (╯°□°)╯︵ ┻━┻' },
|
|
|
|
custom: { id: 'icon_button.icons', defaultMessage: 'Icons' },
|
|
|
|
custom: { id: 'icon_button.icons', defaultMessage: 'Icons' },
|
|
|
|
search_results: { id: 'emoji_button.search_results', defaultMessage: 'Search results' },
|
|
|
|
search_results: { id: 'emoji_button.search_results', defaultMessage: 'Search results' },
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -101,7 +101,7 @@ class IconPickerMenu extends React.PureComponent {
|
|
|
|
emoticons: [],
|
|
|
|
emoticons: [],
|
|
|
|
keywords: [name],
|
|
|
|
keywords: [name],
|
|
|
|
imageUrl: '',
|
|
|
|
imageUrl: '',
|
|
|
|
custom: true,
|
|
|
|
render: <Icon id={name} />,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -124,12 +124,12 @@ class IconPickerMenu extends React.PureComponent {
|
|
|
|
<IconPicker
|
|
|
|
<IconPicker
|
|
|
|
perLine={8}
|
|
|
|
perLine={8}
|
|
|
|
emojiSize={22}
|
|
|
|
emojiSize={22}
|
|
|
|
|
|
|
|
include={categoriesSort}
|
|
|
|
sheetSize={32}
|
|
|
|
sheetSize={32}
|
|
|
|
custom={this.buildIcons(custom_emojis)}
|
|
|
|
custom={this.buildIcons(custom_emojis)}
|
|
|
|
include={categoriesSort}
|
|
|
|
|
|
|
|
color=''
|
|
|
|
color=''
|
|
|
|
emoji=''
|
|
|
|
emoji=''
|
|
|
|
set='twitter'
|
|
|
|
set=''
|
|
|
|
title={title}
|
|
|
|
title={title}
|
|
|
|
i18n={this.getI18n()}
|
|
|
|
i18n={this.getI18n()}
|
|
|
|
onClick={this.handleClick}
|
|
|
|
onClick={this.handleClick}
|
|
|
@ -137,6 +137,8 @@ class IconPickerMenu extends React.PureComponent {
|
|
|
|
backgroundImageFn={backgroundImageFn}
|
|
|
|
backgroundImageFn={backgroundImageFn}
|
|
|
|
autoFocus
|
|
|
|
autoFocus
|
|
|
|
emojiTooltip
|
|
|
|
emojiTooltip
|
|
|
|
|
|
|
|
overwriteRender
|
|
|
|
|
|
|
|
noShowAnchors
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|