aboutsummaryrefslogtreecommitdiff
path: root/modern/src/actions/index.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-07 16:09:01 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-07 16:09:01 +1200
commit72aa50650203d6db0b17de59bfd98c9d5b06e3e7 (patch)
tree0cdd9aced5356f8e32d23069cd0bec2b5c8ef484 /modern/src/actions/index.js
parent06c4ee387669b1ccb5aa3928fbaa7c3650bfb7fa (diff)
downloadetbsa-traccar-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.tar.gz
etbsa-traccar-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.tar.bz2
etbsa-traccar-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.zip
Add redux and load positions
Diffstat (limited to 'modern/src/actions/index.js')
-rw-r--r--modern/src/actions/index.js14
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 0000000..8ef49fa
--- /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
+})