Initial move towards new ESLint config supporting TS
Co-authored-by: Sidney Keese <sidney@carbonfive.com>
This commit is contained in:
parent
c2aa8eb82b
commit
5b1536cc02
22 changed files with 3300 additions and 597 deletions
|
@ -33,11 +33,13 @@ export const Emoji = React.memo(
|
|||
}: Props,
|
||||
ref
|
||||
) => {
|
||||
const image = shortName
|
||||
? getImagePath(shortName, skinTone)
|
||||
: emoji
|
||||
? emojiToImage(emoji)
|
||||
: '';
|
||||
let image = '';
|
||||
if (shortName) {
|
||||
image = getImagePath(shortName, skinTone);
|
||||
} else if (emoji) {
|
||||
image = emojiToImage(emoji) || '';
|
||||
}
|
||||
|
||||
const backgroundStyle = inline
|
||||
? { backgroundImage: `url('${image}')` }
|
||||
: {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue