2020-04-13 21:16:07 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import {
|
|
|
|
selectPasswordResetSuccess,
|
|
|
|
selectPasswordResetIsPending,
|
|
|
|
selectPasswordResetError,
|
|
|
|
selectEmailToVerify,
|
2020-06-15 22:33:03 +02:00
|
|
|
} from 'redux/selectors/user';
|
|
|
|
import { doUserPasswordReset, doClearPasswordEntry, doClearEmailEntry } from 'redux/actions/user';
|
2020-06-12 22:44:25 +02:00
|
|
|
import { doToast } from 'redux/actions/notifications';
|
2020-04-13 21:16:07 +02:00
|
|
|
import UserSignIn from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
passwordResetSuccess: selectPasswordResetSuccess(state),
|
|
|
|
passwordResetIsPending: selectPasswordResetIsPending(state),
|
|
|
|
passwordResetError: selectPasswordResetError(state),
|
|
|
|
emailToVerify: selectEmailToVerify(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doUserPasswordReset,
|
|
|
|
doToast,
|
|
|
|
doClearPasswordEntry,
|
|
|
|
doClearEmailEntry,
|
|
|
|
})(UserSignIn);
|