Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 12 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | import { |
||
2 | ERROR_OCCURRED, |
||
3 | DISMISS_ERROR |
||
4 | } from '../../../constants/ActionTypes'; |
||
5 | |||
6 | export const dismissError = ({ stateKey }) => ({ |
||
7 | type: DISMISS_ERROR, stateKey |
||
8 | }); |
||
9 | |||
10 | export const setError = ({ stateKey, error }) => ({ |
||
11 | type: ERROR_OCCURRED, stateKey, error |
||
12 | }); |
||
13 |