From 91c8088e1d7def9242f60c708cd34f25dcb77d76 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 15 Aug 2017 23:24:28 +0300 Subject: Connect to backend and fetch initial project data --- src/actions/object-stores.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/actions/object-stores.js (limited to 'src/actions/object-stores.js') diff --git a/src/actions/object-stores.js b/src/actions/object-stores.js new file mode 100644 index 00000000..08f3f0bd --- /dev/null +++ b/src/actions/object-stores.js @@ -0,0 +1,24 @@ +export const ADD_TO_SIMULATION_STORE = "ADD_TO_SIMULATION_STORE"; +export const ADD_TO_AUTHORIZATION_STORE = "ADD_TO_AUTHORIZATION_STORE"; +export const ADD_TO_USER_STORE = "ADD_TO_USER_STORE"; + +export function addToSimulationStore(simulation) { + return { + type: ADD_TO_SIMULATION_STORE, + simulation + }; +} + +export function addToAuthorizationStore(authorization) { + return { + type: ADD_TO_AUTHORIZATION_STORE, + authorization + }; +} + +export function addToUserStore(user) { + return { + type: ADD_TO_USER_STORE, + user + } +} -- cgit v1.2.3