show error on find and wrap search

This commit is contained in:
Shin'ya Ueoka 2017-11-11 15:53:46 +09:00
parent 6db2458929
commit 12db4943ee
4 changed files with 83 additions and 15 deletions

View file

@ -3,6 +3,7 @@ import actions from 'content/actions';
const defaultState = {
enabled: false,
keyword: '',
found: false,
};
export default function reducer(state = defaultState, action = {}) {
@ -18,6 +19,7 @@ export default function reducer(state = defaultState, action = {}) {
case actions.FIND_SET_KEYWORD:
return Object.assign({}, state, {
keyword: action.keyword,
found: action.found,
});
default:
return state;