mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
21 lines
296 B
JavaScript
21 lines
296 B
JavaScript
|
|
|
|
const FETCH_SUCCESS_STATISTIC = "FETCH_SUCCESS_STATISTIC"
|
|
|
|
const statistic = (
|
|
state = {},
|
|
action
|
|
) => {
|
|
switch (action.type) {
|
|
|
|
|
|
case FETCH_SUCCESS_STATISTIC:
|
|
return Object.assign({}, state, {...action.data});
|
|
|
|
default:
|
|
return state;
|
|
}
|
|
};
|
|
|
|
export default statistic;
|