mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Stop classname from overwritting baseavatar's
This commit is contained in:
@@ -99,6 +99,7 @@ const BaseAvatar = (props: IProps) => {
|
|||||||
defaultToInitialLetter = true,
|
defaultToInitialLetter = true,
|
||||||
onClick,
|
onClick,
|
||||||
inputRef,
|
inputRef,
|
||||||
|
className,
|
||||||
...otherProps
|
...otherProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
@@ -138,7 +139,7 @@ const BaseAvatar = (props: IProps) => {
|
|||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
{...otherProps}
|
{...otherProps}
|
||||||
element="span"
|
element="span"
|
||||||
className="mx_BaseAvatar"
|
className={classNames("mx_BaseAvatar", className)}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
inputRef={inputRef}
|
inputRef={inputRef}
|
||||||
>
|
>
|
||||||
@@ -149,7 +150,7 @@ const BaseAvatar = (props: IProps) => {
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className="mx_BaseAvatar"
|
className={classNames("mx_BaseAvatar", className)}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
{...otherProps}
|
{...otherProps}
|
||||||
role="presentation"
|
role="presentation"
|
||||||
@@ -164,7 +165,7 @@ const BaseAvatar = (props: IProps) => {
|
|||||||
if (onClick !== null) {
|
if (onClick !== null) {
|
||||||
return (
|
return (
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
className="mx_BaseAvatar mx_BaseAvatar_image"
|
className={classNames("mx_BaseAvatar mx_BaseAvatar_image", className)}
|
||||||
element='img'
|
element='img'
|
||||||
src={imageUrl}
|
src={imageUrl}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
@@ -180,7 +181,7 @@ const BaseAvatar = (props: IProps) => {
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
className="mx_BaseAvatar mx_BaseAvatar_image"
|
className={classNames("mx_BaseAvatar mx_BaseAvatar_image", className)}
|
||||||
src={imageUrl}
|
src={imageUrl}
|
||||||
onError={onError}
|
onError={onError}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user