Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 14 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | import { fromJS } from 'immutable'; |
||
2 | import { generateLastUpdate } from './../../../util/lastUpdate'; |
||
3 | |||
4 | export const showMenu = (state, { stateKey, id }) => |
||
5 | state.setIn([stateKey], fromJS({ |
||
6 | [id]: true, |
||
7 | lastUpdate: generateLastUpdate() |
||
8 | })); |
||
9 | |||
10 | export const hideMenu = (state, { stateKey, id }) => |
||
11 | state.setIn([stateKey], fromJS({ |
||
12 | [id]: false, |
||
13 | lastUpdate: generateLastUpdate() |
||
14 | })); |
||
15 | |||
16 |