fixed missing alt attributes for loading and default avatars
This commit is contained in:
parent
0a78890159
commit
bd307d49c5
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ export const AvatarRenderer = React.memo((props: { avatar: ClientAvatar | "loadi
|
||||||
|
|
||||||
let image;
|
let image;
|
||||||
if(props.avatar === "loading") {
|
if(props.avatar === "loading") {
|
||||||
image = <img src={kLoadingAvatarImage} />;
|
image = <img draggable={false} src={kLoadingAvatarImage} alt={tr("loading")}/>;
|
||||||
} else if(props.avatar === "default") {
|
} else if(props.avatar === "default") {
|
||||||
image = <img src={kDefaultAvatarImage} />;
|
image = <img draggable={false} src={kDefaultAvatarImage} alt={tr("default avatar")} />;
|
||||||
} else {
|
} else {
|
||||||
const imageUrl = props.avatar.getAvatarUrl();
|
const imageUrl = props.avatar.getAvatarUrl();
|
||||||
switch (props.avatar.getState()) {
|
switch (props.avatar.getState()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue