diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-07-31 03:02:55 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 07:44:43 +0800 |
commit | 4e0693eaff0107d11bf93042db50cbb022cfeed8 (patch) | |
tree | 36d999929610b4f20646cb6265231105aa6c042f /ui/app/components/token-balance/token-balance.container.js | |
parent | 40d4ac9ae1ed9557d066c184abd90e51a380cf06 (diff) | |
download | tangerine-wallet-browser-4e0693eaff0107d11bf93042db50cbb022cfeed8.tar tangerine-wallet-browser-4e0693eaff0107d11bf93042db50cbb022cfeed8.tar.gz tangerine-wallet-browser-4e0693eaff0107d11bf93042db50cbb022cfeed8.tar.bz2 tangerine-wallet-browser-4e0693eaff0107d11bf93042db50cbb022cfeed8.tar.lz tangerine-wallet-browser-4e0693eaff0107d11bf93042db50cbb022cfeed8.tar.xz tangerine-wallet-browser-4e0693eaff0107d11bf93042db50cbb022cfeed8.tar.zst tangerine-wallet-browser-4e0693eaff0107d11bf93042db50cbb022cfeed8.zip |
Add withMethodData HOC, add higher-order-component folder
Diffstat (limited to 'ui/app/components/token-balance/token-balance.container.js')
-rw-r--r-- | ui/app/components/token-balance/token-balance.container.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/app/components/token-balance/token-balance.container.js b/ui/app/components/token-balance/token-balance.container.js new file mode 100644 index 000000000..adc001f83 --- /dev/null +++ b/ui/app/components/token-balance/token-balance.container.js @@ -0,0 +1,16 @@ +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) |