blob: 2e3d7a6275469ed6f436cae2c54bf31228e61c6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { bindActionCreators } from 'redux'
// import { actions as crudActions } from './api'
import * as siteActions from 'site/site/site.actions'
import { dispatch } from 'site/store'
export default
// Object.keys(crudActions)
// .map(a => [a, crudActions[a]])
// .concat(
[
['site', siteActions],
] //)
.map(p => [p[0], bindActionCreators(p[1], dispatch)])
.concat([
// ['socket', socketActions],
])
.reduce((a,b) => (a[b[0]] = b[1])&&a,{})
|