alpinesmuseum-public/assets/js/redux/reducers/catalog.js
2022-09-23 07:38:37 +05:30

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;
}
}