UNPKG
@wenn/onb
Version:
latest (1.0.0)
1.0.0
onb-core
@wenn/onb
/
redux
/
actions
/
hasError.actions.js
15 lines
(12 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{
HAS_ERROR
}
from
'../constants'
;
export
function
saveHasErrorRedux
(
hasError
) {
return
{
type
:
HAS_ERROR
, hasError }; }
export
function
saveHasError
(
hasError
) {
return
dispatch
=>
{
dispatch
(
saveHasErrorRedux
(hasError)); }; }