@@ -202,6 +202,33 @@ class Preferences extends React.Component {
202
202
< label htmlFor = "autosave-off" className = "preference__option" > { this . props . t ( 'Preferences.Off' ) } </ label >
203
203
</ div >
204
204
</ div >
205
+ < div className = "preference" >
206
+ < h4 className = "preference__title" > { this . props . t ( 'Preferences.AutocloseBracketsQuotes' ) } </ h4 >
207
+ < div className = "preference__options" >
208
+ < input
209
+ type = "radio"
210
+ onChange = { ( ) => this . props . setAutocloseBracketsQuotes ( true ) }
211
+ aria-label = { this . props . t ( 'Preferences.AutocloseBracketsQuotesOnARIA' ) }
212
+ name = "autoclosebracketsquotes"
213
+ id = "autoclosebracketsquotes-on"
214
+ className = "preference__radio-button"
215
+ value = "On"
216
+ checked = { this . props . autocloseBracketsQuotes }
217
+ />
218
+ < label htmlFor = "autoclosebracketsquotes-on" className = "preference__option" > { this . props . t ( 'Preferences.On' ) } </ label >
219
+ < input
220
+ type = "radio"
221
+ onChange = { ( ) => this . props . setAutocloseBracketsQuotes ( false ) }
222
+ aria-label = { this . props . t ( 'Preferences.AutocloseBracketsQuotesOffARIA' ) }
223
+ name = "autoclosebracketsquotes"
224
+ id = "autoclosebracketsquotes-off"
225
+ className = "preference__radio-button"
226
+ value = "Off"
227
+ checked = { ! this . props . autocloseBracketsQuotes }
228
+ />
229
+ < label htmlFor = "autoclosebracketsquotes-off" className = "preference__option" > { this . props . t ( 'Preferences.Off' ) } </ label >
230
+ </ div >
231
+ </ div >
205
232
< div className = "preference" >
206
233
< h4 className = "preference__title" > { this . props . t ( 'Preferences.WordWrap' ) } </ h4 >
207
234
< div className = "preference__options" >
@@ -361,6 +388,8 @@ Preferences.propTypes = {
361
388
setLintWarning : PropTypes . func . isRequired ,
362
389
theme : PropTypes . string . isRequired ,
363
390
setTheme : PropTypes . func . isRequired ,
391
+ autocloseBracketsQuotes : PropTypes . bool . isRequired ,
392
+ setAutocloseBracketsQuotes : PropTypes . func . isRequired ,
364
393
t : PropTypes . func . isRequired ,
365
394
} ;
366
395
0 commit comments