11 lines
208 B
JavaScript
11 lines
208 B
JavaScript
|
|
import { CATEGORY_SELECT } from "constants/actionTypes";
|
||
|
|
|
||
|
|
export default (state = null, action) => {
|
||
|
|
switch (action.type) {
|
||
|
|
case CATEGORY_SELECT:
|
||
|
|
return action.option;
|
||
|
|
default:
|
||
|
|
return state;
|
||
|
|
}
|
||
|
|
};
|