aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/helpers/higher-order-components/authenticated/authenticated.container.js
blob: 8fc63733298bcc5cd428ceb11cf2b00a55b554bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)