diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-03 14:34:49 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-03 14:34:49 -0800 |
commit | 155e3b90365994a4bfbf3b43505f0452fb3fe88a (patch) | |
tree | db814b99a6c77798e59fd49656535758b2a44491 /modern/src/map/CurrentPositionsMap.js | |
parent | d53632348f684f35719b035ff39744a41c088f3e (diff) | |
download | trackermap-web-155e3b90365994a4bfbf3b43505f0452fb3fe88a.tar.gz trackermap-web-155e3b90365994a4bfbf3b43505f0452fb3fe88a.tar.bz2 trackermap-web-155e3b90365994a4bfbf3b43505f0452fb3fe88a.zip |
Show replay position
Diffstat (limited to 'modern/src/map/CurrentPositionsMap.js')
-rw-r--r-- | modern/src/map/CurrentPositionsMap.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modern/src/map/CurrentPositionsMap.js b/modern/src/map/CurrentPositionsMap.js new file mode 100644 index 00000000..0bfe4fcd --- /dev/null +++ b/modern/src/map/CurrentPositionsMap.js @@ -0,0 +1,11 @@ +import React, { } from 'react'; +import { useSelector } from 'react-redux'; + +import PositionsMap from './PositionsMap'; + +const CurrentPositionsMap = () => { + const positions = useSelector(state => Object.values(state.positions.items)); + return (<PositionsMap positions={positions} />); +} + +export default CurrentPositionsMap; |