add missing alt attributes

This commit is contained in:
Athou
2022-08-26 08:43:24 +02:00
parent 1daf57a4bd
commit 27f80148cb
2 changed files with 6 additions and 2 deletions

View File

@@ -49,7 +49,11 @@ export function TreeNode(props: TreeNodeProps) {
return (
<Box py={1} pl={props.level * 20} className={classes.node} onClick={(e: React.MouseEvent) => props.onClick(e, props.id)}>
<Box mr={6} onClick={(e: React.MouseEvent) => props.onIconClick && props.onIconClick(e, props.id)}>
{typeof props.icon === "string" ? <Image withPlaceholder src={props.icon} alt="" width={18} height={18} /> : props.icon}
{typeof props.icon === "string" ? (
<Image withPlaceholder src={props.icon} alt="favicon" width={18} height={18} />
) : (
props.icon
)}
</Box>
<Box className={classes.nodeText}>{props.name}</Box>
{!props.expanded && (

View File

@@ -17,7 +17,7 @@ export function TreeSearch(props: TreeSearchProps) {
.sort((f1, f2) => f1.name.localeCompare(f2.name))
.map(f => ({
title: f.name,
icon: <Image withPlaceholder src={f.iconUrl} alt="" width={18} height={18} />,
icon: <Image withPlaceholder src={f.iconUrl} alt="favicon" width={18} height={18} />,
onTrigger: () => dispatch(redirectToFeed(f.id)),
}))