aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-26 16:33:23 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-26 16:33:23 -0700
commit6226b06271ae75e0be28dd16c64cf2e3c7392718 (patch)
treefc57b02c7827e95015d7f66c639f104cb3ba45f0 /modern/src/map/main
parent3a651e5f02a90857e4023edb7ac9785d569417dd (diff)
downloadtrackermap-web-6226b06271ae75e0be28dd16c64cf2e3c7392718.tar.gz
trackermap-web-6226b06271ae75e0be28dd16c64cf2e3c7392718.tar.bz2
trackermap-web-6226b06271ae75e0be28dd16c64cf2e3c7392718.zip
Simplify map plugins
Diffstat (limited to 'modern/src/map/main')
-rw-r--r--modern/src/map/main/MapCurrentPositions.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/modern/src/map/main/MapCurrentPositions.js b/modern/src/map/main/MapCurrentPositions.js
deleted file mode 100644
index ff05d2d1..00000000
--- a/modern/src/map/main/MapCurrentPositions.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import React, { useCallback } from 'react';
-import { useDispatch, useSelector } from 'react-redux';
-
-import { devicesActions } from '../../store';
-import MapPositions from '../MapPositions';
-
-const MapCurrentPositions = () => {
- const dispatch = useDispatch();
-
- const onClick = useCallback((_, deviceId) => {
- dispatch(devicesActions.select(deviceId));
- }, [dispatch]);
-
- const positions = useSelector((state) => state.positions.items);
- return (<MapPositions positions={Object.values(positions)} onClick={onClick} />);
-};
-
-export default MapCurrentPositions;