mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +01:00
21 lines
554 B
JavaScript
21 lines
554 B
JavaScript
import { connect } from 'react-redux'
|
|
import { withRouter } from 'react-router-dom'
|
|
import { compose } from 'recompose'
|
|
import TransactionList from './transaction-list.component'
|
|
import {
|
|
pendingTransactionsSelector,
|
|
completedTransactionsSelector,
|
|
} from '../../selectors/transactions'
|
|
|
|
const mapStateToProps = state => {
|
|
return {
|
|
pendingTransactions: pendingTransactionsSelector(state),
|
|
completedTransactions: completedTransactionsSelector(state),
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps)
|
|
)(TransactionList)
|