1234567891011121314151617181920212223 |
- import { CHART } from '../actions/type';
-
- const initialState = {
- statistics: {
- name: 'Statistics',
- data: [33, 33, 34],
- },
- };
-
- const DoughnutChart = (state = initialState, action) => {
- const { payload, type } = action;
- switch (type) {
- case CHART:
- return {
- ...state,
- payload,
- };
- default:
- return state;
- }
- };
-
- export default DoughnutChart;
|