diff --git a/src/renderer/components/+catalog/catalog-menu.tsx b/src/renderer/components/+catalog/catalog-menu.tsx index c7c3db0774..72d990cb93 100644 --- a/src/renderer/components/+catalog/catalog-menu.tsx +++ b/src/renderer/components/+catalog/catalog-menu.tsx @@ -28,6 +28,7 @@ import { catalogCategoryRegistry } from "../../api/catalog-category-registry"; import { Icon } from "../icon"; import { StylesProvider } from "@material-ui/core"; import { cssNames } from "../../utils"; +import type { CatalogCategory } from "../../api/catalog-entity"; type Props = { onItemClick: (id: string) => void; @@ -37,6 +38,14 @@ function getCategories() { return catalogCategoryRegistry.items; } +function getCategoryIcon(category: CatalogCategory) { + if (!category.metadata?.icon) return null; + + return category.metadata.icon.includes(" + : ; +} + function Item(props: TreeItemProps) { return ( @@ -63,6 +72,7 @@ export function CatalogMenu(props: Props) { { getCategories().map(category => ( *:first-child { background-color: var(--blue); color: var(--textColorAccent); + border-radius: 2px; } .iconContainer {