-
Notifications
You must be signed in to change notification settings - Fork 312
/
index.js
35 lines (31 loc) · 874 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// @flow
import { compose } from 'recompose'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import ImportTransactionModal from './ImportTransactionModal'
import {
showErrorNotification,
showSuccessNotification,
showInfoNotification,
hideNotification,
} from '../../../modules/notifications'
import withAuthData from '../../../hocs/withAuthData'
import withNetworkData from '../../../hocs/withNetworkData'
import withThemeData from '../../../hocs/withThemeData'
const actionCreators = {
showErrorNotification,
showSuccessNotification,
showInfoNotification,
hideNotification,
}
const mapDispatchToProps = dispatch =>
bindActionCreators(actionCreators, dispatch)
export default compose(
connect(
null,
mapDispatchToProps,
),
withAuthData(),
withNetworkData(),
withThemeData(),
)(ImportTransactionModal)