mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
17 lines
442 B
JavaScript
17 lines
442 B
JavaScript
import { connect } from 'react-redux'
|
|
import { compose } from 'recompose'
|
|
import withTokenTracker from '../../higher-order-components/with-token-tracker'
|
|
import TokenBalance from './token-balance.component'
|
|
import selectors from '../../selectors'
|
|
|
|
const mapStateToProps = state => {
|
|
return {
|
|
userAddress: selectors.getSelectedAddress(state),
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
connect(mapStateToProps),
|
|
withTokenTracker
|
|
)(TokenBalance)
|