mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +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)
|