1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00
metamask-extension/ui/app/helpers/higher-order-components/authenticated/authenticated.container.js

14 lines
311 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux'
import Authenticated from './authenticated.component'
2020-02-15 21:34:12 +01:00
const mapStateToProps = (state) => {
const { metamask: { isUnlocked, completedOnboarding } } = state
return {
isUnlocked,
completedOnboarding,
}
}
export default connect(mapStateToProps)(Authenticated)