File tree 1 file changed +3
-5
lines changed
site/src/components/Resources
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import Avatar from "@material-ui/core/Avatar"
2
2
import { makeStyles } from "@material-ui/core/styles"
3
3
import FolderIcon from "@material-ui/icons/FolderOutlined"
4
- import HelpIcon from "@material-ui/icons/HelpOutlined "
4
+ import WidgetsIcon from "@material-ui/icons/WidgetsOutlined "
5
5
import ImageIcon from "@material-ui/icons/ImageOutlined"
6
6
import MemoryIcon from "@material-ui/icons/MemoryOutlined"
7
7
import React from "react"
@@ -22,15 +22,13 @@ const iconByResource: Record<string, typeof MemoryIcon> = {
22
22
google_compute_instance : AdjustedMemoryIcon ,
23
23
aws_instance : AdjustedMemoryIcon ,
24
24
kubernetes_deployment : AdjustedMemoryIcon ,
25
- null_resource : HelpIcon ,
25
+ null_resource : WidgetsIcon ,
26
26
}
27
27
28
28
export type ResourceAvatarProps = { type : string }
29
29
30
30
export const ResourceAvatar : React . FC < ResourceAvatarProps > = ( { type } ) => {
31
- // this resource can return undefined
32
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
33
- const IconComponent = iconByResource [ type ] ?? HelpIcon
31
+ const IconComponent = iconByResource [ type ] ?? WidgetsIcon
34
32
const styles = useStyles ( )
35
33
36
34
return (
You can’t perform that action at this time.
0 commit comments