Merge pull request #4635 from mattermost/fix-emoji

fix path for static files

(cherry picked from commit 9e1dd374f2)
This commit is contained in:
Scott Bishel 2023-03-13 18:11:41 -06:00
parent 38496f5718
commit 1c010eeb4a

View file

@ -5,6 +5,8 @@ import React, {FC} from 'react'
import 'emoji-mart/css/emoji-mart.css'
import {Picker, BaseEmoji} from 'emoji-mart'
import {Utils} from '../utils'
import './emojiPicker.scss'
import emojiSpirit from '../../static/emoji_spirit.png'
@ -20,7 +22,7 @@ const EmojiPicker: FC<Props> = (props: Props): JSX.Element => (
>
<Picker
onSelect={(emoji: BaseEmoji) => props.onSelect(emoji.native)}
backgroundImageFn={() => emojiSpirit}
backgroundImageFn={() => Utils.buildURL(emojiSpirit, true)}
/>
</div>
)