From 1c010eeb4aae51db0b87581069445f50dd957f8b Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Mon, 13 Mar 2023 18:11:41 -0600 Subject: [PATCH] Merge pull request #4635 from mattermost/fix-emoji fix path for static files (cherry picked from commit 9e1dd374f241bb21997aa92967d3fe66908d0494) --- webapp/src/widgets/emojiPicker.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/src/widgets/emojiPicker.tsx b/webapp/src/widgets/emojiPicker.tsx index 147fc1d82..6570e2e32 100644 --- a/webapp/src/widgets/emojiPicker.tsx +++ b/webapp/src/widgets/emojiPicker.tsx @@ -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): JSX.Element => ( > props.onSelect(emoji.native)} - backgroundImageFn={() => emojiSpirit} + backgroundImageFn={() => Utils.buildURL(emojiSpirit, true)} /> )