You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
404 B
19 lines
404 B
const Immutable = require('immutable');
|
|
|
|
import * as OptionsActions from '../../actions/options/options.actions';
|
|
|
|
const initial = 0;
|
|
|
|
const reducer = (state = initial, action) => {
|
|
if (action.type !== OptionsActions.OPTIONS_ACTION) {
|
|
return state;
|
|
}
|
|
|
|
if (action.action === OptionsActions.UPDATE) {
|
|
return action.selected;
|
|
}
|
|
|
|
return state;
|
|
};
|
|
|
|
export default reducer;
|
|
|