Skip to content

Commit 3c91b92

Browse files
authored
docs: add comment to ResourceAvatar (#3822)
1 parent 04b0379 commit 3c91b92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

site/src/components/Resources/ResourceAvatar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const AdjustedMemoryIcon: typeof MemoryIcon = ({ style, ...props }) => {
1313
return <MemoryIcon style={{ ...style, fontSize: 24 }} {...props} />
1414
}
1515

16+
// NOTE@jsjoeio, @BrunoQuaresma
17+
// These resources (i.e. docker_image, kubernetes_deployment) map to Terraform
18+
// resource types. These are the most used ones and are based on user usage.
19+
// We may want to update from time-to-time.
1620
const iconByResource: Record<WorkspaceResource["type"], typeof MemoryIcon | undefined> = {
1721
docker_volume: FolderIcon,
1822
docker_container: AdjustedMemoryIcon,

0 commit comments

Comments
 (0)