evoleasing-account/reducers/contractFinesReducer.js
2022-09-12 05:40:42 +03:00

28 lines
491 B
JavaScript

import { HYDRATE } from 'next-redux-wrapper';
import * as actionTypes from '../constants/actionTypes';
import initialState from "./initialState";
const contractFinesReducer = (state = initialState.contract_fines, action) =>
{
switch (action.type)
{
case actionTypes.CONTRACT_FINES:
{
return {
...state, ...action.data,
};
}
case actionTypes.CONTRACT_FINES_RESET:
{
return {};
}
default: {
return state;
}
}
};
export default contractFinesReducer;