Нема описа
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.

1234567891011121314151617181920212223
  1. import { CHART } from '../actions/type';
  2. const initialState = {
  3. investment: {
  4. name: 'Investment',
  5. data: [50, 26, 36, 30, 46, 38, 60],
  6. },
  7. };
  8. const LineInvestment = (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 LineInvestment;