Fix tests

pull/21833/head
Jorik Schellekens 2020-07-07 16:44:15 +01:00
parent dad3dce364
commit e3dbda2abf
1 changed files with 6 additions and 6 deletions

View File

@ -108,7 +108,7 @@ const BaseAvatar = (props: IProps) => {
const initialLetter = AvatarLogic.getInitialLetter(name); const initialLetter = AvatarLogic.getInitialLetter(name);
const textNode = ( const textNode = (
<span <span
className={classNames("mx_BaseAvatar_initial", props.className)} className="mx_BaseAvatar_initial"
aria-hidden="true" aria-hidden="true"
style={{ style={{
fontSize: toPx(width * 0.65), fontSize: toPx(width * 0.65),
@ -121,7 +121,7 @@ const BaseAvatar = (props: IProps) => {
); );
const imgNode = ( const imgNode = (
<img <img
className={classNames("mx_BaseAvatar_image", props.className)} className="mx_BaseAvatar_image"
src={AvatarLogic.defaultAvatarUrlForString(idName || name)} src={AvatarLogic.defaultAvatarUrlForString(idName || name)}
alt="" alt=""
title={title} title={title}
@ -138,7 +138,7 @@ const BaseAvatar = (props: IProps) => {
<AccessibleButton <AccessibleButton
{...otherProps} {...otherProps}
element="span" element="span"
className={classNames("mx_BaseAvatar", props.className)} className="mx_BaseAvatar"
onClick={onClick} onClick={onClick}
inputRef={inputRef} inputRef={inputRef}
> >
@ -149,7 +149,7 @@ const BaseAvatar = (props: IProps) => {
} else { } else {
return ( return (
<span <span
className={classNames("mx_BaseAvatar", props.className)} className="mx_BaseAvatar"
ref={inputRef} ref={inputRef}
{...otherProps} {...otherProps}
role="presentation" role="presentation"
@ -164,7 +164,7 @@ const BaseAvatar = (props: IProps) => {
if (onClick !== null) { if (onClick !== null) {
return ( return (
<AccessibleButton <AccessibleButton
className={classNames("mx_BaseAvatar mx_BaseAvatar_image", props.className)} className="mx_BaseAvatar mx_BaseAvatar_image"
element='img' element='img'
src={imageUrl} src={imageUrl}
onClick={onClick} onClick={onClick}
@ -180,7 +180,7 @@ const BaseAvatar = (props: IProps) => {
} else { } else {
return ( return (
<img <img
className={classNames("mx_BaseAvatar", "mx_BaseAvatar_image", props.className)} className="mx_BaseAvatar mx_BaseAvatar_image"
src={imageUrl} src={imageUrl}
onError={onError} onError={onError}
style={{ style={{