9
9
List ,
10
10
ListItem ,
11
11
ListItemText ,
12
- MenuItem ,
13
- Select ,
12
+ NativeSelect ,
14
13
Switch ,
15
14
TextField ,
16
15
ThemeProvider ,
@@ -172,9 +171,7 @@ function App() {
172
171
< ListItemText primary = { '日志设定' } secondary = { '有关日志等级的设定' } />
173
172
< ListItem >
174
173
< ListItemText primary = { '默认日志等级' } secondary = { '如需上报 Issue 请设置为 Trace' } />
175
- < Select
176
- labelId = "Logging:LogLevel:Default"
177
- id = "Logging:LogLevel:Default"
174
+ < NativeSelect
178
175
value = { configBase . Logging . LogLevel . Default }
179
176
onChange = { e => setConfigBase ( draft => {
180
177
draft . Logging . LogLevel . Default = e . target . value ;
@@ -185,9 +182,9 @@ function App() {
185
182
{ [
186
183
'Trace' , 'Debug' , 'Information' , 'Warning' , 'Error' , 'Critical' , 'None' ,
187
184
] . map ( item =>
188
- < MenuItem key = { `Logging.LogLevel.Default=${ item } ` } value = { item } > { item } </ MenuItem > )
185
+ < option key = { `Logging.LogLevel.Default=${ item } ` } value = { item } > { item } </ option > )
189
186
}
190
- </ Select >
187
+ </ NativeSelect >
191
188
</ ListItem >
192
189
</ List >
193
190
< Divider />
@@ -249,9 +246,7 @@ function App() {
249
246
</ ListItem >
250
247
< ListItem >
251
248
< ListItemText primary = { '协议' } />
252
- < Select
253
- labelId = "Account:Protocol"
254
- id = "Account:Protocol"
249
+ < NativeSelect
255
250
value = { configBase . Account . Protocol }
256
251
onChange = { e => setConfigBase ( draft => {
257
252
draft . Account . Protocol = e . target . value ;
@@ -262,9 +257,9 @@ function App() {
262
257
{ [
263
258
'Linux' , 'MacOs' , 'Windows' ,
264
259
] . map ( item =>
265
- < MenuItem key = { `Account.Protocol=${ item } ` } value = { item } > { item } </ MenuItem > )
260
+ < option key = { `Account.Protocol=${ item } ` } value = { item } > { item } </ option > )
266
261
}
267
- </ Select >
262
+ </ NativeSelect >
268
263
</ ListItem >
269
264
< ListItem >
270
265
< ListItemText primary = { '自动重连' } />
0 commit comments