aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/token-balance/token-balance.container.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/token-balance/token-balance.container.js')
-rw-r--r--ui/app/components/token-balance/token-balance.container.js16
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)