diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-23 07:30:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-23 07:30:04 -0700 |
commit | e7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0 (patch) | |
tree | 4249ebb4305bf6ec28bf54ba9d009494e018bc61 /modern/src/settings/components | |
parent | 85461684eb402d4df62c8b59e0a0f627bd3487c1 (diff) | |
download | trackermap-web-e7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0.tar.gz trackermap-web-e7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0.tar.bz2 trackermap-web-e7e8d1c9a52b9b82fdcbf2d4d6f3134698eb0cf0.zip |
Convert to outline inputs
Diffstat (limited to 'modern/src/settings/components')
-rw-r--r-- | modern/src/settings/components/AddAttributeDialog.js | 4 | ||||
-rw-r--r-- | modern/src/settings/components/BaseCommandView.js | 4 | ||||
-rw-r--r-- | modern/src/settings/components/EditAttributesView.js | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/modern/src/settings/components/AddAttributeDialog.js b/modern/src/settings/components/AddAttributeDialog.js index b7ce43f3..d0ac5f46 100644 --- a/modern/src/settings/components/AddAttributeDialog.js +++ b/modern/src/settings/components/AddAttributeDialog.js @@ -48,11 +48,11 @@ const AddAttributeDialog = ({ open, onResult, definitions }) => { renderOption={(option) => option.name} freeSolo renderInput={(params) => ( - <TextField {...params} label={t('sharedAttribute')} variant="filled" margin="normal" /> + <TextField {...params} label={t('sharedAttribute')} margin="normal" /> )} /> <FormControl - variant="filled" + margin="normal" fullWidth disabled={key in definitions} diff --git a/modern/src/settings/components/BaseCommandView.js b/modern/src/settings/components/BaseCommandView.js index 9a8fa9b5..5f89ac2b 100644 --- a/modern/src/settings/components/BaseCommandView.js +++ b/modern/src/settings/components/BaseCommandView.js @@ -32,7 +32,7 @@ const BaseCommandView = ({ item, setItem }) => { keyGetter={(it) => it.type} titleGetter={(it) => t(prefixString('command', it.type))} label={t('sharedType')} - variant="filled" + /> {attributes.map(({ key, name, type }) => { if (type === 'boolean') { @@ -63,7 +63,7 @@ const BaseCommandView = ({ item, setItem }) => { setItem(updateItem); }} label={name} - variant="filled" + /> ); })} diff --git a/modern/src/settings/components/EditAttributesView.js b/modern/src/settings/components/EditAttributesView.js index da730538..d714c489 100644 --- a/modern/src/settings/components/EditAttributesView.js +++ b/modern/src/settings/components/EditAttributesView.js @@ -3,7 +3,7 @@ import React, { useState } from 'react'; import { Button, Checkbox, - FilledInput, + OutlinedInput, FormControl, FormControlLabel, Grid, @@ -173,9 +173,9 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { ); } return ( - <FormControl variant="filled" margin="normal" key={key}> + <FormControl margin="normal" key={key}> <InputLabel>{getAttributeName(key, subtype)}</InputLabel> - <FilledInput + <OutlinedInput type={type === 'number' ? 'number' : 'text'} value={getDisplayValue(value, subtype)} onChange={(e) => updateAttribute(key, e.target.value, type, subtype)} |