diff options
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/main/MapCurrentPositions.js | 18 |
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; |