diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-07 16:09:01 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-07 16:09:01 +1200 |
commit | 72aa50650203d6db0b17de59bfd98c9d5b06e3e7 (patch) | |
tree | 0cdd9aced5356f8e32d23069cd0bec2b5c8ef484 /modern/src/actions/index.js | |
parent | 06c4ee387669b1ccb5aa3928fbaa7c3650bfb7fa (diff) | |
download | trackermap-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.tar.gz trackermap-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.tar.bz2 trackermap-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.zip |
Add redux and load positions
Diffstat (limited to 'modern/src/actions/index.js')
-rw-r--r-- | modern/src/actions/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modern/src/actions/index.js b/modern/src/actions/index.js new file mode 100644 index 00000000..8ef49fa8 --- /dev/null +++ b/modern/src/actions/index.js @@ -0,0 +1,14 @@ +export const updateDevices = devices => ({ + type: 'UPDATE_DEVICES', + devices +}) + +export const updatePositions = positions => ({ + type: 'UPDATE_POSITIONS', + positions +}); + +export const updateEvents = events => ({ + type: 'UPDATE_EVENTS', + events +}) |