mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-19 22:25:09 +02:00
437651411f
* Reapply changes from PR #310 * Version 4.1.1 * Update action name * Update test * Resolved broken test
20 lines
297 B
JavaScript
20 lines
297 B
JavaScript
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;
|