mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-01 05:22:21 +02:00
16 lines
243 B
JavaScript
16 lines
243 B
JavaScript
const general = (state = { loading: false }, action) => {
|
|
switch (action.type) {
|
|
case 'LOADING': {
|
|
return {
|
|
loading: action.isLoading
|
|
};
|
|
}
|
|
|
|
default: {
|
|
return state;
|
|
}
|
|
}
|
|
};
|
|
|
|
export default general;
|