Fix theme

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-18 10:10:23 +05:30
parent 9c12e11375
commit 85c3240b54
6 changed files with 38 additions and 29 deletions

View file

@ -22,7 +22,7 @@ function Avatar({
<div className={`avatar-container avatar-container__${size} noselect`}>
{
image !== null
? <img src={image} onError={() => updateImage(null)} alt="avatar" />
? <img draggable="false" src={image} onError={() => updateImage(null)} alt="avatar" />
: (
<span
style={{ backgroundColor: iconSrc === null ? bgColor : 'transparent' }}
@ -32,7 +32,7 @@ function Avatar({
iconSrc !== null
? <RawIcon size={size} src={iconSrc} color={iconColor} />
: text !== null && (
<Text variant={textSize} weight="medium" primary>
<Text variant={textSize} primary>
{twemojify([...text][0])}
</Text>
)