Search query / results cards

This commit is contained in:
2020-07-22 12:45:34 +02:00
parent 2bcbfef8ba
commit d8173a9d7f
14 changed files with 188 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
const searchQuery = (state = {}, action) => {
switch (action.type) {
case "SEARCH_QUERY_SET":
return (state = action.payload);
case "SEARCH_QUERY_CLEAR":
return (state = "");
default:
return state;
}
};
export default searchQuery;