11 lines
215 B
JavaScript
11 lines
215 B
JavaScript
import { UPDATE_CATALOG } from '../actions/catalog';
|
|
|
|
export default function catalog(state = [], action) {
|
|
switch (action.type) {
|
|
case UPDATE_CATALOG:
|
|
return action.payload;
|
|
|
|
default:
|
|
return state;
|
|
}
|
|
}
|