diff options
Diffstat (limited to 'ui/app/higher-order-components/initialized')
3 files changed, 0 insertions, 27 deletions
diff --git a/ui/app/higher-order-components/initialized/index.js b/ui/app/higher-order-components/initialized/index.js deleted file mode 100644 index 863fcb389..000000000 --- a/ui/app/higher-order-components/initialized/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from './initialized.container.js' diff --git a/ui/app/higher-order-components/initialized/initialized.component.js b/ui/app/higher-order-components/initialized/initialized.component.js deleted file mode 100644 index 0736ceff4..000000000 --- a/ui/app/higher-order-components/initialized/initialized.component.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' -import { Redirect, Route } from 'react-router-dom' -import { INITIALIZE_ROUTE } from '../../routes' - -export default function Initialized (props) { - return props.completedOnboarding - ? <Route { ...props } /> - : <Redirect to={{ pathname: INITIALIZE_ROUTE }} /> -} - -Initialized.propTypes = { - completedOnboarding: PropTypes.bool, -} diff --git a/ui/app/higher-order-components/initialized/initialized.container.js b/ui/app/higher-order-components/initialized/initialized.container.js deleted file mode 100644 index 0e7f72bcb..000000000 --- a/ui/app/higher-order-components/initialized/initialized.container.js +++ /dev/null @@ -1,12 +0,0 @@ -import { connect } from 'react-redux' -import Initialized from './initialized.component' - -const mapStateToProps = state => { - const { metamask: { completedOnboarding } } = state - - return { - completedOnboarding, - } -} - -export default connect(mapStateToProps)(Initialized) |