Add letter icon option for collections

This commit is contained in:
Tom Moor
2023-09-15 08:54:22 -04:00
parent b79f86d347
commit 6b4feb51e0
9 changed files with 107 additions and 25 deletions

View File

@@ -39,7 +39,11 @@ function ResolvedCollectionIcon({
if (collection.icon && collection.icon !== "collection") {
try {
const Component = icons[collection.icon].component;
return <Component color={color} size={size} />;
return (
<Component color={color} size={size}>
{collection.initial}
</Component>
);
} catch (error) {
Logger.warn("Failed to render custom icon", {
icon: collection.icon,