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