File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
src/extension/ui/src/components/tile Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ import { v1 } from '@docker/extension-api-client-types';
2
2
import CheckOutlined from '@mui/icons-material/CheckOutlined' ;
3
3
import CloseOutlined from '@mui/icons-material/CloseOutlined' ;
4
4
import {
5
- Alert ,
6
5
CircularProgress ,
7
6
IconButton ,
8
- OutlinedInput ,
9
7
Stack ,
10
8
TextField ,
11
9
Typography ,
@@ -82,7 +80,7 @@ const ConfigEditor = ({
82
80
}
83
81
84
82
return (
85
- < Stack >
83
+ < Stack spacing = { 1 } >
86
84
< Typography variant = "subtitle2" > Config</ Typography >
87
85
< Stack direction = "column" spacing = { 2 } >
88
86
{ Object . keys ( flattenedConfig ) . map ( ( key : string ) => {
@@ -91,9 +89,9 @@ const ConfigEditor = ({
91
89
92
90
return (
93
91
< Stack key = { key } direction = "row" spacing = { 2 } >
94
- < OutlinedInput
92
+ < TextField
95
93
size = "small"
96
- placeholder = { key }
94
+ label = { key }
97
95
value = { localConfig [ key ] || '' }
98
96
onChange = { ( e ) =>
99
97
setLocalConfig ( { ...localConfig , [ key ] : e . target . value } )
Original file line number Diff line number Diff line change @@ -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 ,
@@ -279,7 +280,7 @@ const ConfigurationModal = ({
279
280
< Stack direction = "column" spacing = { 2 } >
280
281
< ConfigEditor catalogItem = { catalogItem } client = { client } />
281
282
282
- < Stack >
283
+ < Stack spacing = { 1 } >
283
284
< Typography variant = "subtitle2" > Secrets</ Typography >
284
285
{ catalogItem . secrets && catalogItem . secrets ?. length > 0 ? (
285
286
catalogItem . secrets . map ( ( secret ) => {
@@ -296,10 +297,10 @@ const ConfigurationModal = ({
296
297
spacing = { 2 }
297
298
alignItems = "center"
298
299
>
299
- < OutlinedInput
300
+ < TextField
300
301
size = "small"
301
302
key = { secret . name }
302
- placeholder = { secret . name }
303
+ label = { secret . name }
303
304
value = { localSecrets [ secret . name ] }
304
305
fullWidth
305
306
onChange = { ( e ) => {
You can’t perform that action at this time.
0 commit comments