2019-08-27 16:43:42 +02:00
|
|
|
import { connect } from 'react-redux';
|
2020-04-13 21:16:07 +02:00
|
|
|
import { selectUser, selectUserIsPending, selectEmailToVerify, selectPasswordExists, doUserSignIn } from 'lbryinc';
|
2019-09-26 18:07:11 +02:00
|
|
|
import UserSignIn from './view';
|
2019-08-27 16:43:42 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
user: selectUser(state),
|
2019-09-26 18:28:08 +02:00
|
|
|
userFetchPending: selectUserIsPending(state),
|
2020-04-13 21:16:07 +02:00
|
|
|
emailToVerify: selectEmailToVerify(state),
|
|
|
|
passwordExists: selectPasswordExists(state),
|
2019-08-27 16:43:42 +02:00
|
|
|
});
|
|
|
|
|
2020-04-13 21:16:07 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doUserSignIn,
|
|
|
|
})(UserSignIn);
|