File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,12 @@ BunchOfApps.args = {
33
33
] ,
34
34
} ,
35
35
}
36
+
37
+ export const NoApps = Template . bind ( { } )
38
+ NoApps . args = {
39
+ ...Example . args ,
40
+ agent : {
41
+ ...MockWorkspaceAgent ,
42
+ apps : [ ] ,
43
+ } ,
44
+ }
Original file line number Diff line number Diff line change 1
1
import { makeStyles } from "@material-ui/core/styles"
2
2
import { AppPreviewLink } from "components/AppLink/AppPreviewLink"
3
+ import { Maybe } from "components/Conditionals/Maybe"
3
4
import { FC } from "react"
4
5
import { useTranslation } from "react-i18next"
5
6
import { combineClasses } from "util/combineClasses"
@@ -75,6 +76,11 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({ agent }) => {
75
76
{ agent . apps . map ( ( app ) => (
76
77
< AppPreviewLink key = { app . name } app = { app } />
77
78
) ) }
79
+ < Maybe condition = { agent . apps . length === 0 } >
80
+ < span className = { styles . agentDataValue } >
81
+ { t ( "labels.noApps" ) }
82
+ </ span >
83
+ </ Maybe >
78
84
</ Stack >
79
85
</ Stack >
80
86
</ Stack >
Original file line number Diff line number Diff line change 7
7
"labels" : {
8
8
"agent" : " Agent" ,
9
9
"os" : " OS" ,
10
- "apps" : " Apps"
10
+ "apps" : " Apps" ,
11
+ "noApps" : " None"
11
12
}
12
13
}
You can’t perform that action at this time.
0 commit comments