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

16 lines
503 B
JavaScript
Raw Normal View History

2019-08-27 10:43:42 -04:00
import { connect } from 'react-redux';
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),
userFetchPending: selectUserIsPending(state),
emailToVerify: selectEmailToVerify(state),
passwordExists: selectPasswordExists(state),
2019-08-27 10:43:42 -04:00
});
export default connect(select, {
doUserSignIn,
})(UserSignIn);