1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-18 15:33:21 +01:00
metamask-extension/ui/app/helpers/higher-order-components/authenticated/authenticated.container.js

16 lines
324 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) => {
2020-11-03 00:41:28 +01:00
const {
metamask: { isUnlocked, completedOnboarding },
} = state;
return {
isUnlocked,
completedOnboarding,
};
};
export default connect(mapStateToProps)(Authenticated);