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 = (