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