More twemojify text
authorAjay Bura <ajbura@gmail.com>
Tue, 23 Nov 2021 11:37:15 +0000 (17:07 +0530)
committerAjay Bura <ajbura@gmail.com>
Tue, 23 Nov 2021 11:37:15 +0000 (17:07 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/app/molecules/popup-window/PopupWindow.jsx

index 2d6026b096274d780a324774a176c98b6d82ef24..016679ee959e45b5d0828e4d021e4b8351ee5ec5 100644 (file)
@@ -2,6 +2,8 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import './PopupWindow.scss';
 
+import { twemojify } from '../../../util/twemojify';
+
 import Text from '../../atoms/text/Text';
 import IconButton from '../../atoms/button/IconButton';
 import { MenuItem } from '../../atoms/context-menu/ContextMenu';
@@ -66,7 +68,7 @@ function PopupWindow({
             <Header>
               <IconButton size="small" src={ChevronLeftIC} onClick={onRequestClose} tooltip="Back" />
               <TitleWrapper>
-                <Text variant="s1">{title}</Text>
+                <Text variant="s1">{twemojify(title)}</Text>
               </TitleWrapper>
               {drawerOptions}
             </Header>
@@ -82,7 +84,7 @@ function PopupWindow({
         <div className="pw__content">
           <Header>
             <TitleWrapper>
-              <Text variant="h2">{contentTitle !== null ? contentTitle : title}</Text>
+              <Text variant="h2">{twemojify(contentTitle !== null ? contentTitle : title)}</Text>
             </TitleWrapper>
             {contentOptions}
           </Header>