lbry-desktop/ui/component/userSignIn/index.js

16 lines
503 B
JavaScript
Raw Normal View History

2019-08-27 16:43:42 +02:00
import { connect } from 'react-redux';
import { selectUser, selectUserIsPending, selectEmailToVerify, selectPasswordExists } from 'redux/selectors/user';
import { doUserSignIn } from 'redux/actions/user';
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),
userFetchPending: selectUserIsPending(state),
emailToVerify: selectEmailToVerify(state),
passwordExists: selectPasswordExists(state),
2019-08-27 16:43:42 +02:00
});
export default connect(select, {
doUserSignIn,
})(UserSignIn);