show error on find and wrap search
This commit is contained in:
parent
6db2458929
commit
12db4943ee
4 changed files with 83 additions and 15 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue