diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-22 17:08:55 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:44 +0200 |
| commit | 1ddbbd3563af77a218020021ea50a8832900b4db (patch) | |
| tree | 5647f9cfde2de3918eeeac58d6c598bb55e50d82 /src/actions | |
| parent | 602c3eb9327a3681f5a220e13b8291bb60643cd7 (diff) | |
Add route logic for construction routes
Diffstat (limited to 'src/actions')
| -rw-r--r-- | src/actions/objects.js | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/src/actions/objects.js b/src/actions/objects.js index 08f3f0bd..0a0e3046 100644 --- a/src/actions/objects.js +++ b/src/actions/objects.js @@ -1,24 +1,9 @@ -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 const ADD_TO_STORE = "ADD_TO_STORE"; -export function addToSimulationStore(simulation) { +export function addToStore(objectType, object) { return { - type: ADD_TO_SIMULATION_STORE, - simulation + type: ADD_TO_STORE, + objectType, + object }; } - -export function addToAuthorizationStore(authorization) { - return { - type: ADD_TO_AUTHORIZATION_STORE, - authorization - }; -} - -export function addToUserStore(user) { - return { - type: ADD_TO_USER_STORE, - user - } -} |
