2019-03-14 05:41:06 +01:00
|
|
|
import { CATEGORY_SELECT } from "../constants/actionTypes";
|
2019-01-12 14:09:17 +01:00
|
|
|
|
|
|
|
|
export default (state = null, action) => {
|
|
|
|
|
switch (action.type) {
|
|
|
|
|
case CATEGORY_SELECT:
|
|
|
|
|
return action.option;
|
|
|
|
|
default:
|
|
|
|
|
return state;
|
|
|
|
|
}
|
|
|
|
|
};
|