Merge pull request #4635 from mattermost/fix-emoji
fix path for static files
(cherry picked from commit 9e1dd374f2
)
This commit is contained in:
parent
38496f5718
commit
1c010eeb4a
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue