Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

doughnutChart.js 456B

1234567891011121314151617181920212223
  1. import { CHART } from '../actions/type';
  2. const initialState = {
  3. statistics: {
  4. name: 'Statistics',
  5. data: [33, 33, 34],
  6. },
  7. };
  8. const DoughnutChart = (state = initialState, action) => {
  9. const { payload, type } = action;
  10. switch (type) {
  11. case CHART:
  12. return {
  13. ...state,
  14. payload,
  15. };
  16. default:
  17. return state;
  18. }
  19. };
  20. export default DoughnutChart;