Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6493 Rev 6515
Línea 1... Línea 1...
1
import { intlTypes } from './intl.types'
1
import { intlTypes } from './intl.types'
Línea 2... Línea 2...
2
 
2
 
-
 
3
const initialState = {
-
 
4
  labels: null,
Línea 3... Línea 5...
3
const initialState = {}
5
}
4
 
6
 
5
export default function intlReducer(state = initialState, { type, payload }) {
7
export default function intlReducer(state = initialState, { type, payload }) {
6
  switch (type) {
8
  switch (type) {
7
    case intlTypes.SET_LABELS:
9
    case intlTypes.SET_LABELS:
8
      return {
10
      return {
9
        ...state,
11
        ...state,
10
        ...payload,
12
        labels: payload,
11
      }
13
      }
12
    default:
14
    default:
13
      return state
15
      return state