2020-04-13 21:16:07 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import {
|
|
|
|
selectUser,
|
|
|
|
selectPasswordSetSuccess,
|
|
|
|
selectPasswordSetError,
|
|
|
|
doUserPasswordSet,
|
|
|
|
doClearPasswordEntry,
|
|
|
|
} from 'lbryinc';
|
2020-06-12 22:44:25 +02:00
|
|
|
import { doToast } from 'redux/actions/notifications';
|
2020-04-13 21:16:07 +02:00
|
|
|
import UserSignIn from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
user: selectUser(state),
|
|
|
|
passwordSetSuccess: selectPasswordSetSuccess(state),
|
|
|
|
passwordSetError: selectPasswordSetError(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doUserPasswordSet,
|
|
|
|
doToast,
|
|
|
|
doClearPasswordEntry,
|
|
|
|
})(UserSignIn);
|