| author | Alexandre Segura <mex.zktk@gmail.com> |
| Wed, 28 Jun 2017 14:44:02 +0200 | |
| changeset 104 | d48a74232d22 |
| parent 87 | dbcee57de2c6 |
| child 129 | d48946d164c6 |
| permissions | -rw-r--r-- |
|
87
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
import * as types from '../constants/actionTypes'; |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
export const dataFetchSuccess = (res) => { |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
return { |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
type: types.DATA_FETCH_SUCCESS, |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
res |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
}; |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
} |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
|
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
export const offlineConfigInitialized = (additionalContext) => { |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
return { |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
type: types.OFFLINE_CONFIG_INITIALIZED, |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
additionalContext |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
} |
|
dbcee57de2c6
Add first implementation of network monitor
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
} |