aboutsummaryrefslogtreecommitdiff
path: root/modern/src/DevicePage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-24 15:32:00 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-24 15:32:00 -0700
commit4b192b870dfd4fc1eb61b244bbe455a59f7089c3 (patch)
tree4936dcb1a70ba034315ac1bef6e40fbacf005c63 /modern/src/DevicePage.js
parent50505e02d2464a5f353aa805c9622c6d4f940ebc (diff)
downloadtrackermap-web-4b192b870dfd4fc1eb61b244bbe455a59f7089c3.tar.gz
trackermap-web-4b192b870dfd4fc1eb61b244bbe455a59f7089c3.tar.bz2
trackermap-web-4b192b870dfd4fc1eb61b244bbe455a59f7089c3.zip
Implement category icons
Diffstat (limited to 'modern/src/DevicePage.js')
-rw-r--r--modern/src/DevicePage.js25
1 files changed, 1 insertions, 24 deletions
diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js
index d4b83e6e..7c9b5671 100644
--- a/modern/src/DevicePage.js
+++ b/modern/src/DevicePage.js
@@ -8,6 +8,7 @@ import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import EditAttributesView from './attributes/EditAttributesView';
import deviceAttributes from './attributes/deviceAttributes';
import SelectField from './form/SelectField';
+import { deviceCategories } from './common/deviceCategories';
const useStyles = makeStyles(() => ({
details: {
@@ -15,30 +16,6 @@ const useStyles = makeStyles(() => ({
},
}));
-const deviceCategories = [
- 'default',
- 'animal',
- 'bicycle',
- 'boat',
- 'bus',
- 'car',
- 'crane',
- 'helicopter',
- 'motorcycle',
- 'offroad',
- 'person',
- 'pickup',
- 'plane',
- 'ship',
- 'tractor',
- 'train',
- 'tram',
- 'trolleybus',
- 'truck',
- 'van',
- 'scooter',
-];
-
const DevicePage = () => {
const classes = useStyles();