@@ -21,6 +21,7 @@ import {
21
21
Switch ,
22
22
Tab ,
23
23
Tabs ,
24
+ TextField ,
24
25
Tooltip ,
25
26
Typography ,
26
27
useTheme ,
@@ -199,7 +200,6 @@ const ConfigurationModal = ({
199
200
</ Typography >
200
201
{ catalogItem . readme !== undefined && (
201
202
< Typography variant = "body2" sx = { { mt : 2 , color : 'text.secondary' } } >
202
- Repository:{ ' ' }
203
203
< Link
204
204
onClick = { ( ) => client . host . openExternal ( catalogItem . readme || '' ) }
205
205
href = { catalogItem . readme || '' }
@@ -280,10 +280,10 @@ const ConfigurationModal = ({
280
280
< Stack direction = "column" spacing = { 2 } >
281
281
< ConfigEditor catalogItem = { catalogItem } client = { client } />
282
282
283
- < Stack >
284
- < Typography variant = "subtitle2" > Secrets </ Typography >
285
- { catalogItem . secrets && catalogItem . secrets ?. length > 0 ? (
286
- catalogItem . secrets . map ( ( secret ) => {
283
+ { catalogItem . secrets ?. length > 0 && (
284
+ < Stack spacing = { 1 } >
285
+ < Typography variant = "subtitle2" > Secrets </ Typography >
286
+ { catalogItem . secrets . map ( ( secret ) => {
287
287
const secretEdited =
288
288
( secret . assigned &&
289
289
localSecrets [ secret . name ] !==
@@ -297,10 +297,10 @@ const ConfigurationModal = ({
297
297
spacing = { 2 }
298
298
alignItems = "center"
299
299
>
300
- < OutlinedInput
300
+ < TextField
301
301
size = "small"
302
302
key = { secret . name }
303
- placeholder = { secret . name }
303
+ label = { secret . name }
304
304
value = { localSecrets [ secret . name ] }
305
305
fullWidth
306
306
onChange = { ( e ) => {
@@ -357,20 +357,12 @@ const ConfigurationModal = ({
357
357
) }
358
358
</ Stack >
359
359
) ;
360
- } )
361
- ) : (
362
- < Alert severity = "info" >
363
- No secrets available for this item.
364
- </ Alert >
365
- ) }
366
- </ Stack >
360
+ } ) }
361
+ </ Stack >
362
+ ) }
367
363
</ Stack >
368
364
</ Stack >
369
365
</ TabPanel >
370
- < TabPanel value = { tabValue } index = { 2 } >
371
- < Typography > Examples</ Typography >
372
- WIP
373
- </ TabPanel >
374
366
</ >
375
367
) }
376
368
</ DialogContent >
0 commit comments