2020-04-13 21:16:07 +02:00
|
|
|
import { connect } from 'react-redux';
|
2020-06-15 22:33:03 +02:00
|
|
|
import { selectUser, selectPasswordSetSuccess, selectPasswordSetError } from 'redux/selectors/user';
|
|
|
|
import { doUserPasswordSet, doClearPasswordEntry } from 'redux/actions/user';
|
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';
|
|
|
|
|
2022-02-26 06:18:10 +01:00
|
|
|
const select = (state) => ({
|
2020-04-13 21:16:07 +02:00
|
|
|
user: selectUser(state),
|
|
|
|
passwordSetSuccess: selectPasswordSetSuccess(state),
|
|
|
|
passwordSetError: selectPasswordSetError(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doUserPasswordSet,
|
|
|
|
doToast,
|
|
|
|
doClearPasswordEntry,
|
|
|
|
})(UserSignIn);
|