A fork of https://github.com/ueokande/vim-vixen
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.
16 lines
304 B
16 lines
304 B
7 years ago
|
import actions from 'content/actions';
|
||
|
|
||
|
const defaultState = {
|
||
|
enabled: true,
|
||
|
};
|
||
|
|
||
|
export default function reducer(state = defaultState, action = {}) {
|
||
|
switch (action.type) {
|
||
6 years ago
|
case actions.ADDON_SET_ENABLED:
|
||
6 years ago
|
return { ...state,
|
||
6 years ago
|
enabled: action.enabled, };
|
||
7 years ago
|
default:
|
||
|
return state;
|
||
|
}
|
||
|
}
|