2020-04-13 15:16:07 -04:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import {
|
|
|
|
selectEmailNewErrorMessage,
|
|
|
|
selectEmailToVerify,
|
|
|
|
doUserCheckIfEmailExists,
|
|
|
|
doClearEmailEntry,
|
|
|
|
selectEmailDoesNotExist,
|
|
|
|
selectEmailAlreadyExists,
|
2020-04-20 16:53:40 -04:00
|
|
|
selectUser,
|
2020-04-13 15:16:07 -04:00
|
|
|
} from 'lbryinc';
|
2020-04-20 13:13:41 -04:00
|
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
2020-04-13 15:16:07 -04:00
|
|
|
import UserEmailReturning from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
errorMessage: selectEmailNewErrorMessage(state),
|
|
|
|
emailToVerify: selectEmailToVerify(state),
|
|
|
|
emailDoesNotExist: selectEmailDoesNotExist(state),
|
|
|
|
emailExists: selectEmailAlreadyExists(state),
|
2020-04-20 16:53:40 -04:00
|
|
|
user: selectUser(state),
|
2020-04-13 15:16:07 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doUserCheckIfEmailExists,
|
|
|
|
doClearEmailEntry,
|
2020-04-20 13:13:41 -04:00
|
|
|
doSetClientSetting,
|
2020-04-13 15:16:07 -04:00
|
|
|
})(UserEmailReturning);
|