Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 14 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { RENDER_DATA, IMPORT_JSON } from '../constants/ActionTypes' |
||
2 | |||
3 | const userData = (state = {}, action) => { |
||
4 | switch (action.type) { |
||
5 | case RENDER_DATA: |
||
6 | return action.data.userData |
||
7 | case IMPORT_JSON: |
||
8 | return action.data.cv |
||
9 | default: |
||
10 | return state |
||
11 | } |
||
12 | } |
||
13 | |||
14 | export default userData |
||
15 |