23 lines
600 B
JavaScript
23 lines
600 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import {
|
||
|
selectEmailNewErrorMessage,
|
||
|
selectEmailToVerify,
|
||
|
doUserCheckIfEmailExists,
|
||
|
doClearEmailEntry,
|
||
|
selectEmailDoesNotExist,
|
||
|
selectEmailAlreadyExists,
|
||
|
} from 'lbryinc';
|
||
|
import UserEmailReturning from './view';
|
||
|
|
||
|
const select = state => ({
|
||
|
errorMessage: selectEmailNewErrorMessage(state),
|
||
|
emailToVerify: selectEmailToVerify(state),
|
||
|
emailDoesNotExist: selectEmailDoesNotExist(state),
|
||
|
emailExists: selectEmailAlreadyExists(state),
|
||
|
});
|
||
|
|
||
|
export default connect(select, {
|
||
|
doUserCheckIfEmailExists,
|
||
|
doClearEmailEntry,
|
||
|
})(UserEmailReturning);
|