mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-16 12:10:28 +03:00
Twemojify text
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
b6485f91ae
commit
b9378118dd
3 changed files with 7 additions and 3 deletions
|
|
@ -2,6 +2,8 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import './SidebarAvatar.scss';
|
||||
|
||||
import { twemojify } from '../../../util/twemojify';
|
||||
|
||||
import Avatar from '../../atoms/avatar/Avatar';
|
||||
import Text from '../../atoms/text/Text';
|
||||
import Tooltip from '../../atoms/tooltip/Tooltip';
|
||||
|
|
@ -16,7 +18,7 @@ const SidebarAvatar = React.forwardRef(({
|
|||
if (active) activeClass = ' sidebar-avatar--active';
|
||||
return (
|
||||
<Tooltip
|
||||
content={<Text variant="b1">{tooltip}</Text>}
|
||||
content={<Text variant="b1">{twemojify(tooltip)}</Text>}
|
||||
placement="right"
|
||||
>
|
||||
<button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue