From f272038ca1b48e6dc4a02260781e2549d327e40a Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Mon, 4 May 2020 11:09:47 -0300 Subject: [PATCH] [FIX] ReactionsModal (#2085) --- app/containers/message/Emoji.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/containers/message/Emoji.js b/app/containers/message/Emoji.js index 661971131..e8b817da0 100644 --- a/app/containers/message/Emoji.js +++ b/app/containers/message/Emoji.js @@ -1,15 +1,13 @@ -import React, { useContext } from 'react'; +import React from 'react'; import { Text } from 'react-native'; import PropTypes from 'prop-types'; import shortnameToUnicode from '../../utils/shortnameToUnicode'; import CustomEmoji from '../EmojiPicker/CustomEmoji'; -import MessageContext from './Context'; const Emoji = React.memo(({ - content, standardEmojiStyle, customEmojiStyle, getCustomEmoji + content, baseUrl, standardEmojiStyle, customEmojiStyle, getCustomEmoji }) => { - const { baseUrl } = useContext(MessageContext); const parsedContent = content.replace(/^:|:$/g, ''); const emoji = getCustomEmoji(parsedContent); if (emoji) { @@ -20,6 +18,7 @@ const Emoji = React.memo(({ Emoji.propTypes = { content: PropTypes.string, + baseUrl: PropTypes.string, standardEmojiStyle: PropTypes.object, customEmojiStyle: PropTypes.object, getCustomEmoji: PropTypes.func