1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 07:18:06 +02:00
awesome-compose/react-java-mysql/frontend/src/app/redux/whales/reducer.js
Anca Iordache f1e4cca535 Move all samples to the root dir
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
2020-03-16 17:23:59 +01:00

16 lines
334 B
JavaScript
Executable file

import * as ActionTypes from "./action-types";
import { handleActions } from "redux-actions";
const defaultState = {
list: [],
};
const handleFetchWhales = (state, {payload}) => {
return state;
};
const reducer = handleActions({
[ActionTypes.FETCH_WHALES] : handleFetchWhales
}, defaultState);
export default reducer;