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

17 lines
454 B
JavaScript
Raw Normal View History

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