lbry-desktop/src/ui/page/auth/index.js

23 lines
601 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2017-07-19 01:00:13 +02:00
import {
selectAuthenticationIsPending,
selectEmailToVerify,
selectUserIsVerificationCandidate,
selectUser,
selectUserIsPending,
selectIdentityVerifyIsPending,
2018-09-24 05:44:42 +02:00
} from 'lbryinc';
import AuthPage from './view';
2017-07-19 01:00:13 +02:00
const select = state => ({
2019-05-07 23:38:29 +02:00
isPending: selectAuthenticationIsPending(state) || selectUserIsPending(state) || selectIdentityVerifyIsPending(state),
2017-07-19 01:00:13 +02:00
email: selectEmailToVerify(state),
user: selectUser(state),
isVerificationCandidate: selectUserIsVerificationCandidate(state),
});
2018-09-24 05:44:42 +02:00
export default connect(
select,
2019-03-28 17:53:13 +01:00
null
2018-09-24 05:44:42 +02:00
)(AuthPage);