diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-17 18:52:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-17 18:52:04 -0700 |
commit | 36c361b6c3ee8f951cf3906d7f451e30e2f46ada (patch) | |
tree | 37f7b7dca9361b1641601400ca116958298e789b /modern | |
parent | e4b84449ec7bbb4c97c1668cd5818e9cbb2a1cd9 (diff) | |
download | trackermap-web-36c361b6c3ee8f951cf3906d7f451e30e2f46ada.tar.gz trackermap-web-36c361b6c3ee8f951cf3906d7f451e30e2f46ada.tar.bz2 trackermap-web-36c361b6c3ee8f951cf3906d7f451e30e2f46ada.zip |
Fix style issues
Diffstat (limited to 'modern')
-rw-r--r-- | modern/.eslintrc.js | 1 | ||||
-rw-r--r-- | modern/src/DevicesList.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modern/.eslintrc.js b/modern/.eslintrc.js index ace20277..ec948e57 100644 --- a/modern/.eslintrc.js +++ b/modern/.eslintrc.js @@ -13,6 +13,7 @@ module.exports = { 'no-return-assign': [0], 'no-param-reassign': [0], 'no-prototype-builtins': [0], + 'no-nested-ternary': [0], 'react/jsx-filename-extension': [1, { extensions: ['.js'] }], 'react/prop-types': [0], 'react/jsx-props-no-spreading': [0], diff --git a/modern/src/DevicesList.js b/modern/src/DevicesList.js index 534e3a86..cdb2a040 100644 --- a/modern/src/DevicesList.js +++ b/modern/src/DevicesList.js @@ -1,6 +1,7 @@ import React, { useEffect, useRef, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { makeStyles } from '@material-ui/core/styles'; +import { IconButton, Tooltip } from '@material-ui/core'; import Avatar from '@material-ui/core/Avatar'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; @@ -24,7 +25,6 @@ import EditCollectionView from './EditCollectionView'; import { useEffectAsync } from './reactHelper'; import { formatBoolean, formatPercentage, getStatusColor } from './common/formatter'; import { useTranslation } from './LocalizationProvider'; -import { IconButton, Tooltip } from '@material-ui/core'; import { prefixString } from './common/stringUtils'; const useStyles = makeStyles((theme) => ({ |