show placeholder while favicon is loading

This commit is contained in:
Athou
2022-08-26 08:23:28 +02:00
parent 3999532e77
commit 1daf57a4bd
3 changed files with 3 additions and 3 deletions

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 src={f.iconUrl} alt="" width={18} height={18} />,
icon: <Image withPlaceholder src={f.iconUrl} alt="" width={18} height={18} />,
onTrigger: () => dispatch(redirectToFeed(f.id)),
}))