Package updates / Redux toolkit / TS interface / boilerplate
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
const autoCompleteReducer = (state = [], action) => {
|
||||
switch (action.type) {
|
||||
case "AUTOCOMPLETE_ADD":
|
||||
return action.payload;
|
||||
case "AUTOCOMPLETE_CLEAR":
|
||||
return (state = []);
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
export default autoCompleteReducer;
|
||||
Reference in New Issue
Block a user