summaryrefslogtreecommitdiff
path: root/src/actions/objects.js
blob: 08f3f0bd2338ba7c11808ae7a129dbb715df64d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
    }
}