27 lines
701 B
JavaScript
27 lines
701 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import {
|
||
|
doUserPasswordReset,
|
||
|
selectPasswordResetSuccess,
|
||
|
selectPasswordResetIsPending,
|
||
|
selectPasswordResetError,
|
||
|
doClearPasswordEntry,
|
||
|
doClearEmailEntry,
|
||
|
selectEmailToVerify,
|
||
|
} from 'lbryinc';
|
||
|
import { doToast } from 'lbry-redux';
|
||
|
import UserSignIn from './view';
|
||
|
|
||
|
const select = state => ({
|
||
|
passwordResetSuccess: selectPasswordResetSuccess(state),
|
||
|
passwordResetIsPending: selectPasswordResetIsPending(state),
|
||
|
passwordResetError: selectPasswordResetError(state),
|
||
|
emailToVerify: selectEmailToVerify(state),
|
||
|
});
|
||
|
|
||
|
export default connect(select, {
|
||
|
doUserPasswordReset,
|
||
|
doToast,
|
||
|
doClearPasswordEntry,
|
||
|
doClearEmailEntry,
|
||
|
})(UserSignIn);
|