diff options
Diffstat (limited to 'modern/src/admin/ServerPage.js')
-rw-r--r-- | modern/src/admin/ServerPage.js | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/modern/src/admin/ServerPage.js b/modern/src/admin/ServerPage.js index 6d5b575a..ec0034f5 100644 --- a/modern/src/admin/ServerPage.js +++ b/modern/src/admin/ServerPage.js @@ -79,45 +79,19 @@ const ServerPage = () => { </AccordionSummary> <AccordionDetails className={classes.details}> <FormControlLabel - control={( - <Checkbox - checked={item.registration} - onChange={(event) => setItem({ ...item, registration: event.target.checked })} - /> - )} + control={<Checkbox checked={item.registration} onChange={(event) => setItem({ ...item, registration: event.target.checked })} />} label={t('serverRegistration')} /> <FormControlLabel - control={( - <Checkbox - checked={item.readonly} - onChange={(event) => setItem({ ...item, readonly: event.target.checked })} - /> - )} + control={<Checkbox checked={item.readonly} onChange={(event) => setItem({ ...item, readonly: event.target.checked })} />} label={t('serverReadonly')} /> <FormControlLabel - control={( - <Checkbox - checked={item.deviceReadonly} - onChange={(event) => setItem({ - ...item, - deviceReadonly: event.target.checked, - })} - /> - )} + control={<Checkbox checked={item.deviceReadonly} onChange={(event) => setItem({ ...item, deviceReadonly: event.target.checked })} />} label={t('userDeviceReadonly')} /> <FormControlLabel - control={( - <Checkbox - checked={item.limitCommands} - onChange={(event) => setItem({ - ...item, - limitCommands: event.target.checked, - })} - /> - )} + control={<Checkbox checked={item.limitCommands} onChange={(event) => setItem({ ...item, limitCommands: event.target.checked })} />} label={t('userLimitCommands')} /> </AccordionDetails> @@ -140,20 +114,10 @@ const ServerPage = () => { )} <FormControl fullWidth margin="normal"> <div className={classes.buttons}> - <Button - type="button" - color="primary" - variant="outlined" - onClick={() => history.goBack()} - > + <Button type="button" color="primary" variant="outlined" onClick={() => history.goBack()}> {t('sharedCancel')} </Button> - <Button - type="button" - color="primary" - variant="contained" - onClick={handleSave} - > + <Button type="button" color="primary" variant="contained" onClick={handleSave}> {t('sharedSave')} </Button> </div> |