File tree 3 files changed +17
-1
lines changed
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"
@@ -91,6 +92,11 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({
91
92
{ agent . apps . map ( ( app ) => (
92
93
< AppPreviewLink key = { app . slug } app = { app } />
93
94
) ) }
95
+ < Maybe condition = { agent . apps . length === 0 } >
96
+ < span className = { styles . agentDataValue } >
97
+ { t ( "labels.noApps" ) }
98
+ </ span >
99
+ </ Maybe >
94
100
</ Stack >
95
101
</ Stack >
96
102
</ 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