mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 08:51:24 +00:00
29 lines
857 B
JavaScript
29 lines
857 B
JavaScript
import { selectPathAfterAuth } from 'lbry-redux';
|
|
import { connect } from 'react-redux';
|
|
import { doNavigate } from 'redux/actions/navigation';
|
|
import {
|
|
selectAuthenticationIsPending,
|
|
selectEmailToVerify,
|
|
selectUserIsVerificationCandidate,
|
|
selectUser,
|
|
selectUserIsPending,
|
|
selectIdentityVerifyIsPending,
|
|
} from 'redux/selectors/user';
|
|
import AuthPage from './view';
|
|
|
|
const select = state => ({
|
|
isPending:
|
|
selectAuthenticationIsPending(state) ||
|
|
selectUserIsPending(state) ||
|
|
selectIdentityVerifyIsPending(state),
|
|
email: selectEmailToVerify(state),
|
|
pathAfterAuth: selectPathAfterAuth(state),
|
|
user: selectUser(state),
|
|
isVerificationCandidate: selectUserIsVerificationCandidate(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
});
|
|
|
|
export default connect(select, perform)(AuthPage);
|