mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
docs: add comment to ResourceAvatar (#3822)
This commit is contained in:
@@ -13,6 +13,10 @@ const AdjustedMemoryIcon: typeof MemoryIcon = ({ style, ...props }) => {
|
||||
return <MemoryIcon style={{ ...style, fontSize: 24 }} {...props} />
|
||||
}
|
||||
|
||||
// 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<WorkspaceResource["type"], typeof MemoryIcon | undefined> = {
|
||||
docker_volume: FolderIcon,
|
||||
docker_container: AdjustedMemoryIcon,
|
||||
|
||||
Reference in New Issue
Block a user