- implementing immutable.js
This commit is contained in:
12
app/reducers/blockUI.js
Normal file
12
app/reducers/blockUI.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { BLOCK_UI, UNBLOCK_UI } from '../constants/actionTypes.js';
|
||||
|
||||
export const blockUI = (state = false, action) => {
|
||||
switch (action.type) {
|
||||
case BLOCK_UI:
|
||||
return true;
|
||||
case UNBLOCK_UI:
|
||||
return false;
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user