2019-08-27 10:43:42 -04:00
|
|
|
import { connect } from 'react-redux';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectUser, selectUserIsPending, selectEmailToVerify, selectPasswordExists } from 'redux/selectors/user';
|
|
|
|
import { doUserSignIn } from 'redux/actions/user';
|
2019-09-26 12:07:11 -04:00
|
|
|
import UserSignIn from './view';
|
2019-08-27 10:43:42 -04:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
user: selectUser(state),
|
2019-09-26 12:28:08 -04:00
|
|
|
userFetchPending: selectUserIsPending(state),
|
2020-04-13 15:16:07 -04:00
|
|
|
emailToVerify: selectEmailToVerify(state),
|
|
|
|
passwordExists: selectPasswordExists(state),
|
2019-08-27 10:43:42 -04:00
|
|
|
});
|
|
|
|
|
2020-04-13 15:16:07 -04:00
|
|
|
export default connect(select, {
|
|
|
|
doUserSignIn,
|
|
|
|
})(UserSignIn);
|