@@ -228,45 +228,41 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = ({
228
228
</ PageHeaderSubtitle >
229
229
</ PageHeader >
230
230
231
- < TemplatesFilter filter = { filter } />
231
+ < TemplatesFilter filter = { filter } error = { error } />
232
+
233
+ < TableContainer >
234
+ < Table >
235
+ < TableHead >
236
+ < TableRow >
237
+ < TableCell width = "35%" > { Language . nameLabel } </ TableCell >
238
+ < TableCell width = "15%" >
239
+ { showOrganizations ? "Organization" : Language . usedByLabel }
240
+ </ TableCell >
241
+ < TableCell width = "10%" > { Language . buildTimeLabel } </ TableCell >
242
+ < TableCell width = "15%" > { Language . lastUpdatedLabel } </ TableCell >
243
+ < TableCell width = "1%" />
244
+ </ TableRow >
245
+ </ TableHead >
246
+ < TableBody >
247
+ { isLoading && < TableLoader /> }
232
248
233
- { error ? (
234
- < ErrorAlert error = { error } />
235
- ) : (
236
- < TableContainer >
237
- < Table >
238
- < TableHead >
239
- < TableRow >
240
- < TableCell width = "35%" > { Language . nameLabel } </ TableCell >
241
- < TableCell width = "15%" >
242
- { showOrganizations ? "Organization" : Language . usedByLabel }
243
- </ TableCell >
244
- < TableCell width = "10%" > { Language . buildTimeLabel } </ TableCell >
245
- < TableCell width = "15%" > { Language . lastUpdatedLabel } </ TableCell >
246
- < TableCell width = "1%" />
247
- </ TableRow >
248
- </ TableHead >
249
- < TableBody >
250
- { isLoading && < TableLoader /> }
251
-
252
- { isEmpty ? (
253
- < EmptyTemplates
254
- canCreateTemplates = { canCreateTemplates }
255
- examples = { examples ?? [ ] }
249
+ { isEmpty ? (
250
+ < EmptyTemplates
251
+ canCreateTemplates = { canCreateTemplates }
252
+ examples = { examples ?? [ ] }
253
+ />
254
+ ) : (
255
+ templates ?. map ( ( template ) => (
256
+ < TemplateRow
257
+ key = { template . id }
258
+ showOrganizations = { showOrganizations }
259
+ template = { template }
256
260
/>
257
- ) : (
258
- templates ?. map ( ( template ) => (
259
- < TemplateRow
260
- key = { template . id }
261
- showOrganizations = { showOrganizations }
262
- template = { template }
263
- />
264
- ) )
265
- ) }
266
- </ TableBody >
267
- </ Table >
268
- </ TableContainer >
269
- ) }
261
+ ) )
262
+ ) }
263
+ </ TableBody >
264
+ </ Table >
265
+ </ TableContainer >
270
266
</ Margins >
271
267
) ;
272
268
} ;
0 commit comments