2017-12-21 22:08:54 +01:00
|
|
|
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';
|
2017-12-21 22:08:54 +01:00
|
|
|
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);
|