From a4ce2e57a52c226b62ac663dc629f3667e4fb2b4 Mon Sep 17 00:00:00 2001 From: jc0b Date: Fri, 24 Jul 2020 12:19:55 +0200 Subject: changes to prefabs with giorgios --- frontend/src/actions/prefabs.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'frontend/src/actions/prefabs.js') diff --git a/frontend/src/actions/prefabs.js b/frontend/src/actions/prefabs.js index 3f1558ce..8d262772 100644 --- a/frontend/src/actions/prefabs.js +++ b/frontend/src/actions/prefabs.js @@ -1,25 +1,13 @@ export const ADD_PREFAB = 'ADD_PREFAB' -export const ADD_PREFAB_SUCCEEDED = 'ADD_PREFAB_SUCCEEDED' export const DELETE_PREFAB = 'DELETE_PREFAB' export const DELETE_PREFAB_SUCCEEDED = 'DELETE_PREFAB_SUCCEEDED' export const OPEN_PREFAB_SUCCEEDED = 'OPEN_PREFAB_SUCCEEDED' - +//infer rackID from state in saga later export function addPrefab(name) { - return (dispatch, getState) => { - const { auth } = getState() - dispatch({ - type: ADD_PREFAB, - name, - userId: auth.userId, - }) - } -} - -export function addPrefabSucceeded(authorization) { return { - type: ADD_PREFAB_SUCCEEDED, - authorization, + type: ADD_PREFAB, + name, } } -- cgit v1.2.3