3b23f09bed
remove previous changes,keep syncpref in wallet, change anon wallet pref key to local sync choices wip dont relocate syncenable setting bump no prefs on web unauth bugfix redux bump pull after sync change bump
27 lines
856 B
JavaScript
27 lines
856 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
selectEmailNewErrorMessage,
|
|
selectEmailToVerify,
|
|
selectEmailDoesNotExist,
|
|
selectEmailAlreadyExists,
|
|
selectUser,
|
|
selectEmailNewIsPending,
|
|
} from 'redux/selectors/user';
|
|
import { doUserCheckIfEmailExists, doClearEmailEntry } from 'redux/actions/user';
|
|
import { doSetWalletSyncPreference } from 'redux/actions/settings';
|
|
import UserEmailReturning from './view';
|
|
|
|
const select = state => ({
|
|
errorMessage: selectEmailNewErrorMessage(state),
|
|
emailToVerify: selectEmailToVerify(state),
|
|
emailDoesNotExist: selectEmailDoesNotExist(state),
|
|
emailExists: selectEmailAlreadyExists(state),
|
|
isPending: selectEmailNewIsPending(state),
|
|
user: selectUser(state),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doUserCheckIfEmailExists,
|
|
doClearEmailEntry,
|
|
doSetWalletSyncPreference,
|
|
})(UserEmailReturning);
|