From 08d9e67199690cdfa4be88501f90d4dba88326cc Mon Sep 17 00:00:00 2001 From: David Weber Date: Mon, 20 Nov 2023 22:13:41 +0100 Subject: [PATCH] fix: add resource icon Signed-off-by: David Weber --- .changeset/healthy-poets-search.md | 5 +++++ .../apis/EntityPresentationApi/defaultEntityPresentation.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/healthy-poets-search.md diff --git a/.changeset/healthy-poets-search.md b/.changeset/healthy-poets-search.md new file mode 100644 index 0000000000..dfd223b379 --- /dev/null +++ b/.changeset/healthy-poets-search.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-react': patch +--- + +Add default icon for kind resource. diff --git a/plugins/catalog-react/src/apis/EntityPresentationApi/defaultEntityPresentation.ts b/plugins/catalog-react/src/apis/EntityPresentationApi/defaultEntityPresentation.ts index eacb659062..4ba18e35d1 100644 --- a/plugins/catalog-react/src/apis/EntityPresentationApi/defaultEntityPresentation.ts +++ b/plugins/catalog-react/src/apis/EntityPresentationApi/defaultEntityPresentation.ts @@ -30,6 +30,7 @@ import LocationOnIcon from '@material-ui/icons/LocationOn'; import MemoryIcon from '@material-ui/icons/Memory'; import PeopleIcon from '@material-ui/icons/People'; import PersonIcon from '@material-ui/icons/Person'; +import WorkIcon from '@material-ui/icons/Work'; import get from 'lodash/get'; import { EntityRefPresentationSnapshot } from './EntityPresentationApi'; @@ -39,6 +40,7 @@ const DEFAULT_ICONS: Record = { api: ExtensionIcon, component: MemoryIcon, system: BusinessIcon, + resource: WorkIcon, domain: ApartmentIcon, location: LocationOnIcon, user: PersonIcon,