From 00802b01e9354268587adee2343803b036457510 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 11 Jul 2022 15:09:41 -0500 Subject: [PATCH] EmojiPicker: fix asset paths --- app/soapbox/features/emoji/components/emoji_picker.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/soapbox/features/emoji/components/emoji_picker.tsx b/app/soapbox/features/emoji/components/emoji_picker.tsx index 5a2ea22190..df59b9cf40 100644 --- a/app/soapbox/features/emoji/components/emoji_picker.tsx +++ b/app/soapbox/features/emoji/components/emoji_picker.tsx @@ -1,15 +1,17 @@ import { Picker as EmojiPicker, PickerProps } from 'emoji-mart'; import React, { useRef, useEffect } from 'react'; +import { joinPublicPath } from 'soapbox/utils/static'; + import data from '../data'; const getSpritesheetURL = (set: string) => { - return '/packs/images/32.png'; -} + return require('emoji-datasource/img/twitter/sheets/32.png'); +}; const getImageURL = (set: string, name: string) => { - return `/packs/emoji/${name}.svg`; -} + return joinPublicPath(`/packs/emoji/${name}.svg`); +}; function Picker(props: PickerProps) { const ref = useRef(null);