Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1640 | Rev 1644 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1640 Rev 1642
Línea 8... Línea 8...
8
}
8
}
Línea 9... Línea 9...
9
 
9
 
10
const reportReducer = (state = reportState, action) => {
10
const reportReducer = (state = reportState, action) => {
Línea 11... Línea 11...
11
  const { type, payload } = action
11
  const { type, payload } = action
12
 
12
 
13
  const actionCases = {
-
 
14
    [actionsTypes.CLOSE_MODAL]: {
13
  switch (type) {
15
      ...state,
14
    case [actionsTypes.CLOSE_MODAL]: {
-
 
15
      return { ...state, ...reportState }
16
      ...reportState
16
    }
-
 
17
 
17
    },
18
    case [actionsTypes.SHOW_MODAL]: {
18
    [actionsTypes.SHOW_MODAL]: {
19
      return {
19
      ...state,
20
        ...state,
20
      showModal: true,
21
        showModal: true,
21
      type: payload.type,
22
        type: payload?.type,
-
 
23
        reportUrl: payload?.reportUrl,
22
      reportUrl: payload.reportUrl,
24
        onComplete: payload?.onComplete
23
      onComplete: payload.onComplete
-
 
Línea -... Línea 25...
-
 
25
      }
24
    }
26
    }
-
 
27
 
-
 
28
    default: {
25
  }
29
      return state
Línea 26... Línea 30...
26
 
30
    }