2020-04-13 21:16:07 +02:00
|
|
|
import { connect } from 'react-redux';
|
2020-07-09 18:50:11 +02:00
|
|
|
import {
|
|
|
|
selectUser,
|
|
|
|
selectUserIsPending,
|
|
|
|
selectEmailToVerify,
|
|
|
|
selectEmailNewErrorMessage,
|
|
|
|
selectEmailNewIsPending,
|
|
|
|
} from 'redux/selectors/user';
|
2020-06-15 22:33:03 +02:00
|
|
|
import { doUserSignIn, doClearEmailEntry } from 'redux/actions/user';
|
2020-04-13 21:16:07 +02:00
|
|
|
import UserSignIn from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
user: selectUser(state),
|
|
|
|
userFetchPending: selectUserIsPending(state),
|
|
|
|
emailToVerify: selectEmailToVerify(state),
|
|
|
|
errorMessage: selectEmailNewErrorMessage(state),
|
2020-07-09 18:50:11 +02:00
|
|
|
isPending: selectEmailNewIsPending(state),
|
2020-04-13 21:16:07 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doUserSignIn,
|
|
|
|
doClearEmailEntry,
|
|
|
|
})(UserSignIn);
|