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

17 lines
454 B
JavaScript
Raw Normal View History

2017-06-07 20:56:52 -04:00
import React from "react";
import { connect } from "react-redux";
2017-06-02 19:09:52 -04:00
import {
selectAuthenticationIsPending,
2017-06-07 20:56:52 -04:00
selectEmailToVerify,
selectUserIsVerificationCandidate,
} from "selectors/user";
import Auth from "./view";
2017-05-26 12:53:32 +04:00
2017-06-07 20:56:52 -04:00
const select = state => ({
2017-06-02 19:09:52 -04:00
isPending: selectAuthenticationIsPending(state),
2017-06-07 20:56:52 -04:00
email: selectEmailToVerify(state),
isVerificationCandidate: selectUserIsVerificationCandidate(state),
});
2017-05-26 12:53:32 +04:00
2017-06-07 20:56:52 -04:00
export default connect(select, null)(Auth);