Choices/src/scripts/reducers/general.js

20 lines
297 B
JavaScript
Raw Normal View History

export const defaultState = {
loading: false,
};
const general = (state = defaultState, action) => {
switch (action.type) {
case 'SET_IS_LOADING': {
return {
loading: action.isLoading,
};
}
default: {
return state;
}
}
};
export default general;