add global find keyword

This commit is contained in:
Shin'ya Ueoka 2018-03-07 20:54:28 +09:00
parent 4923cb20c7
commit 24e72aa6e0
8 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,16 @@
import actions from 'content/actions';
const defaultState = {
keyword: null,
};
export default function reducer(state = defaultState, action = {}) {
switch (action.type) {
case actions.FIND_SET_KEYWORD:
return Object.assign({}, state, {
keyword: action.keyword,
});
default:
return state;
}
}