Fix icons to show in the picker for promotional items

This commit is contained in:
Sean 2022-02-03 05:23:12 +00:00
parent d5ae29bfda
commit 58850f1d8e

View file

@ -69,7 +69,9 @@ class IconPickerMenu extends React.PureComponent {
// Nice and dirty hack to display the icons
c.querySelectorAll('button.emoji-mart-emoji > span').forEach(elem => {
elem.innerHTML = `<i class="fa fa-${elem.parentNode.getAttribute('title')}"></i>`;
const newIcon = document.createElement('span');
newIcon.innerHTML = `<i class="fa fa-${elem.parentNode.getAttribute('title')} fa-hack"></i>`;
elem.parentNode.replaceChild(newIcon, elem);
});
}