aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/reject-transactions/reject-transactions.container.js
blob: 81e98d3ff90d757259b171546dea0ff027fe8f20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { connect } from 'react-redux'
import { compose } from 'recompose'
import RejectTransactionsModal from './reject-transactions.component'
import withModalProps from '../../../higher-order-components/with-modal-props'

const mapStateToProps = (state, ownProps) => {
  const { unapprovedTxCount } = ownProps

  return {
    unapprovedTxCount,
  }
}

export default compose(
  withModalProps,
  connect(mapStateToProps),
)(RejectTransactionsModal)