26 lines
652 B
JavaScript
26 lines
652 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
selectEmailToVerify,
|
|
doUserResendVerificationEmail,
|
|
doUserCheckEmailVerified,
|
|
selectUser,
|
|
} from 'lbryinc';
|
|
import { doNavigate } from 'redux/actions/navigation';
|
|
import UserEmailVerify from './view';
|
|
|
|
const select = state => ({
|
|
email: selectEmailToVerify(state),
|
|
user: selectUser(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
resendVerificationEmail: email => dispatch(doUserResendVerificationEmail(email)),
|
|
checkEmailVerified: () => dispatch(doUserCheckEmailVerified()),
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(UserEmailVerify);
|