19 lines
389 B
JavaScript
19 lines
389 B
JavaScript
import * as ActionTypes from '../constants/constants';
|
|
|
|
const initialState = {
|
|
isPreferencesShowing: false
|
|
}
|
|
|
|
const preferences = (state = initialState, action) => {
|
|
switch (action.type) {
|
|
case ActionTypes.TOGGLE_PREFERENCES:
|
|
console.log('in here');
|
|
return {
|
|
isPreferencesShowing: !state.isPreferencesShowing
|
|
}
|
|
default:
|
|
return state
|
|
}
|
|
}
|
|
|
|
export default preferences;
|