aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/helpers/higher-order-components/authenticated/authenticated.container.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/helpers/higher-order-components/authenticated/authenticated.container.js')
-rw-r--r--ui/app/helpers/higher-order-components/authenticated/authenticated.container.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app/helpers/higher-order-components/authenticated/authenticated.container.js b/ui/app/helpers/higher-order-components/authenticated/authenticated.container.js
new file mode 100644
index 000000000..6124b0fcd
--- /dev/null
+++ b/ui/app/helpers/higher-order-components/authenticated/authenticated.container.js
@@ -0,0 +1,12 @@
+import { connect } from 'react-redux'
+import Authenticated from './authenticated.component'
+
+const mapStateToProps = state => {
+ const { metamask: { isUnlocked, completedOnboarding } } = state
+ return {
+ isUnlocked,
+ completedOnboarding,
+ }
+}
+
+export default connect(mapStateToProps)(Authenticated)