- more!
This commit is contained in:
11
app/reducers/auctionFilter.js
Normal file
11
app/reducers/auctionFilter.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { SET_ITEM_FILTER } from '../constants/actionTypes.js';
|
||||
import { ITEM_FILTERS } from '../constants/constants.js';
|
||||
|
||||
export const itemFilter = (state = ITEM_FILTERS.ALL, action) => {
|
||||
switch (action.type) {
|
||||
case SET_AUCTION_FILTER:
|
||||
return action.payload;
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user