설명 없음
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.

lineChart.js 558B

123456789101112131415161718192021222324
  1. import { CHART } from '../actions/type';
  2. const initialState = {
  3. expenses: {
  4. name: 'Expenses',
  5. youtube: [65, 59, 80, 81, 56, 55, 40,80, 81, 56, 55, 40],
  6. facebook: [40, 105, 92, 155, 138, 205, 120,92, 155, 138, 205, 120],
  7. },
  8. };
  9. const LineChart = (state = initialState, action) => {
  10. const { payload, type } = action;
  11. switch (type) {
  12. case CHART:
  13. return {
  14. ...state,
  15. payload,
  16. };
  17. default:
  18. return state;
  19. }
  20. };
  21. export default LineChart;