Begin move to redux
This commit is contained in:
10
src/redux/reducers/mount_reducer.js
Normal file
10
src/redux/reducers/mount_reducer.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import {createReducer} from 'redux-starter-kit';
|
||||
import {setBusy} from '../actions/mount_actions';
|
||||
|
||||
export const mountReducer = createReducer({
|
||||
MountsBusy: false,
|
||||
}, {
|
||||
[setBusy]: (state, action) => {
|
||||
return {...state, MountsBusy: action.payload};
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user