Search query / results cards
This commit is contained in:
12
src/reducers/searchQuery.js
Normal file
12
src/reducers/searchQuery.js
Normal 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;
|
||||
Reference in New Issue
Block a user