Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 5 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

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