@@ -49,9 +49,7 @@ const LinuxSetup: React.FC<LinuxSetupProps> = ({
49
49
return (
50
50
< div className = "space-y-6" data-testid = "linux-setup" >
51
51
< div className = "space-y-4" >
52
- < h2 className = "text-lg font-medium text-gray-900" >
53
- System Configuration
54
- </ h2 >
52
+ < h2 className = "text-lg font-medium text-gray-900" > System Configuration</ h2 >
55
53
< Input
56
54
id = "dataDirectory"
57
55
label = "Data Directory"
@@ -87,9 +85,7 @@ const LinuxSetup: React.FC<LinuxSetupProps> = ({
87
85
</ div >
88
86
89
87
< div className = "space-y-4" >
90
- < h2 className = "text-lg font-medium text-gray-900" >
91
- Proxy Configuration
92
- </ h2 >
88
+ < h2 className = "text-lg font-medium text-gray-900" > Proxy Configuration</ h2 >
93
89
< div className = "space-y-4" >
94
90
< Input
95
91
id = "httpProxy"
@@ -129,11 +125,7 @@ const LinuxSetup: React.FC<LinuxSetupProps> = ({
129
125
className = "flex items-center text-lg font-medium text-gray-900 mb-4"
130
126
onClick = { ( ) => onShowAdvancedChange ( ! showAdvanced ) }
131
127
>
132
- { showAdvanced ? (
133
- < ChevronDown className = "w-4 h-4 mr-1" />
134
- ) : (
135
- < ChevronUp className = "w-4 h-4 mr-1" />
136
- ) }
128
+ { showAdvanced ? < ChevronDown className = "w-4 h-4 mr-1" /> : < ChevronUp className = "w-4 h-4 mr-1" /> }
137
129
Advanced Settings
138
130
</ button >
139
131
@@ -145,21 +137,20 @@ const LinuxSetup: React.FC<LinuxSetupProps> = ({
145
137
value = { config . networkInterface || "" }
146
138
onChange = { onSelectChange }
147
139
options = { [
148
- { value : "" , label : "Select a network interface" } ,
149
140
...( availableNetworkInterfaces . length > 0
150
141
? availableNetworkInterfaces . map ( ( iface ) => ( {
151
142
value : iface ,
152
143
label : iface ,
153
144
} ) )
154
- : ( prototypeSettings . availableNetworkInterfaces || [ ] ) . map (
155
- ( iface ) => ( {
156
- value : iface . name ,
157
- label : iface . name ,
158
- } )
159
- ) ) ,
145
+ : ( prototypeSettings . availableNetworkInterfaces || [ ] ) . map ( ( iface ) => ( {
146
+ value : iface . name ,
147
+ label : iface . name ,
148
+ } ) ) ) ,
160
149
] }
161
150
helpText = { `Network interface to use for ${ title } ` }
162
151
error = { getFieldError ( "networkInterface" ) }
152
+ required
153
+ placeholder = "Select a network interface"
163
154
/>
164
155
165
156
< Input
@@ -168,8 +159,9 @@ const LinuxSetup: React.FC<LinuxSetupProps> = ({
168
159
value = { config . globalCidr || "" }
169
160
onChange = { onInputChange }
170
161
placeholder = "10.244.0.0/16"
171
- helpText = "CIDR notation for the reserved network range (defaults to 10.244.0.0/16; must be /16 or larger)"
162
+ helpText = "CIDR notation for the reserved network range (must be /16 or larger)"
172
163
error = { getFieldError ( "globalCidr" ) }
164
+ required
173
165
/>
174
166
</ div >
175
167
) }
0 commit comments