From 8458572032f830e8d2f560dbd6396cabd724f417 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Tue, 7 Jul 2020 15:18:10 +0100 Subject: [PATCH] lint --- src/components/views/avatars/BaseAvatar.tsx | 19 +++++++++++++------ src/components/views/voip/CallView2.tsx | 1 + 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/views/avatars/BaseAvatar.tsx b/src/components/views/avatars/BaseAvatar.tsx index 0dbca70df0..e51016d7c5 100644 --- a/src/components/views/avatars/BaseAvatar.tsx +++ b/src/components/views/avatars/BaseAvatar.tsx @@ -18,6 +18,7 @@ limitations under the License. */ import React, {useCallback, useContext, useEffect, useMemo, useState} from 'react'; +import classNames from 'classnames'; import * as AvatarLogic from '../../../Avatar'; import SettingsStore from "../../../settings/SettingsStore"; import AccessibleButton from '../elements/AccessibleButton'; @@ -38,6 +39,7 @@ interface IProps { defaultToInitialLetter?: boolean; // true to add default url onClick?: React.MouseEventHandler; inputRef?: React.RefObject; + className?: string; } const useImageUrl = ({url, urls}): [string, () => void] => { @@ -106,7 +108,7 @@ const BaseAvatar = (props: IProps) => { const initialLetter = AvatarLogic.getInitialLetter(name); const textNode = (