+ autocomplete + thunk

This commit is contained in:
2020-07-21 19:39:56 +02:00
parent 29efa13410
commit 2bcbfef8ba
16 changed files with 255 additions and 38 deletions

View File

@@ -0,0 +1,12 @@
const autoCompleteReducer = (state = [], action) => {
switch (action.type) {
case "AUTOCOMPLETE_ADD":
return action.payload;
case "AUTOCOMPLETE_CLEAR":
return (state = []);
default:
return state;
}
};
export default autoCompleteReducer;