From 27fc2ac4ba05c70b9144cc17068881c553f921c6 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 1 Sep 2022 23:44:32 +0000 Subject: [PATCH] docs: add comment to ResourceAvatar --- site/src/components/Resources/ResourceAvatar.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/src/components/Resources/ResourceAvatar.tsx b/site/src/components/Resources/ResourceAvatar.tsx index 3c7f41c5fa548..32ca6a6127f8d 100644 --- a/site/src/components/Resources/ResourceAvatar.tsx +++ b/site/src/components/Resources/ResourceAvatar.tsx @@ -13,6 +13,10 @@ const AdjustedMemoryIcon: typeof MemoryIcon = ({ style, ...props }) => { return } +// NOTE@jsjoeio, @BrunoQuaresma +// These resources (i.e. docker_image, kubernetes_deployment) map to Terraform +// resource types. These are the most used ones and are based on user usage. +// We may want to update from time-to-time. const iconByResource: Record = { docker_volume: FolderIcon, docker_container: AdjustedMemoryIcon,