removing workspace from Redux

This commit is contained in:
Delucse
2020-07-23 15:55:54 +02:00
parent c2405de04a
commit 168c5fb575
7 changed files with 25 additions and 68 deletions
+1 -7
View File
@@ -1,4 +1,4 @@
import { CHANGE_WORKSPACE, NEW_CODE, NEW_WORKSPACE, CREATE_BLOCK, MOVE_BLOCK, CHANGE_BLOCK, DELETE_BLOCK, CLEAR_STATS } from '../actions/types';
import { CHANGE_WORKSPACE, NEW_CODE, CREATE_BLOCK, MOVE_BLOCK, CHANGE_BLOCK, DELETE_BLOCK, CLEAR_STATS } from '../actions/types';
const initialState = {
@@ -6,7 +6,6 @@ const initialState = {
arduino: '',
xml: ''
},
workspace: null,
stats: {
create: 0,
change: 0,
@@ -28,11 +27,6 @@ export default function(state = initialState, action){
...state,
change: state.change += 1
};
case NEW_WORKSPACE:
return {
...state,
workspace: action.payload
};
case CREATE_BLOCK:
case MOVE_BLOCK:
case CHANGE_BLOCK: