remove unused actions and fix test

This commit is contained in:
Shin'ya Ueoka 2017-11-11 18:45:10 +09:00
parent e3409b3aae
commit fe8a928317
5 changed files with 10 additions and 61 deletions

View file

@ -1,21 +1,12 @@
import actions from 'content/actions';
const defaultState = {
enabled: false,
keyword: '',
found: false,
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.FIND_SHOW:
return Object.assign({}, state, {
enabled: true,
});
case actions.FIND_HIDE:
return Object.assign({}, state, {
enabled: false,
});
case actions.FIND_SET_KEYWORD:
return Object.assign({}, state, {
keyword: action.keyword,