diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-06 14:27:17 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-06 14:27:17 -0700 |
commit | e3460181198fa98c5320ebe28650160603797f33 (patch) | |
tree | a340b2a35ba17e1fdafc5ee69efca97300d9a367 /modern/src/attributes | |
parent | a0406374030e930b8bd8032900e83b4a432ae28a (diff) | |
download | trackermap-web-e3460181198fa98c5320ebe28650160603797f33.tar.gz trackermap-web-e3460181198fa98c5320ebe28650160603797f33.tar.bz2 trackermap-web-e3460181198fa98c5320ebe28650160603797f33.zip |
Fix style issues
Diffstat (limited to 'modern/src/attributes')
-rw-r--r-- | modern/src/attributes/EditAttributesView.js | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/modern/src/attributes/EditAttributesView.js b/modern/src/attributes/EditAttributesView.js index 56fdff5a..4343fde4 100644 --- a/modern/src/attributes/EditAttributesView.js +++ b/modern/src/attributes/EditAttributesView.js @@ -8,7 +8,9 @@ import AddIcon from '@material-ui/icons/Add'; import AddAttributeDialog from './AddAttributeDialog'; import { useTranslation } from '../LocalizationProvider'; import { useAttributePreference } from '../common/preferences'; -import { distanceFromMeters, distanceToMeters, distanceUnitString, speedFromKnots, speedToKnots, speedUnitString, volumeFromLiters, volumeToLiters, volumeUnitString } from '../common/converter'; +import { + distanceFromMeters, distanceToMeters, distanceUnitString, speedFromKnots, speedToKnots, speedUnitString, volumeFromLiters, volumeToLiters, volumeUnitString, +} from '../common/converter'; const useStyles = makeStyles((theme) => ({ addButton: { @@ -98,7 +100,7 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { } } return ''; - } + }; const convertToList = (attributes) => { const booleanList = []; @@ -108,9 +110,13 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { const type = getAttributeType(value); const subtype = getAttributeSubtype(key); if (type === 'boolean') { - booleanList.push({ key, value, type, subtype }); + booleanList.push({ + key, value, type, subtype, + }); } else { - otherList.push({ key, value, type, subtype }); + otherList.push({ + key, value, type, subtype, + }); } }); return [...otherList, ...booleanList]; @@ -135,7 +141,9 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { return ( <> - {convertToList(attributes).map(({ key, value, type, subtype }) => { + {convertToList(attributes).map(({ + key, value, type, subtype, + }) => { if (type === 'boolean') { return ( <Grid container direction="row" justify="space-between" key={key}> |