d7856b7618
default language functions bugfix1 bugfix2 bugfix4
19 lines
671 B
JavaScript
19 lines
671 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectUser, selectPasswordSetSuccess, selectPasswordSetError } from 'redux/selectors/user';
|
|
import { selectLanguage } from 'redux/selectors/settings';
|
|
import { doUserPasswordSet, doClearPasswordEntry } from 'redux/actions/user';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
import UserSignIn from './view';
|
|
|
|
const select = state => ({
|
|
user: selectUser(state),
|
|
passwordSetSuccess: selectPasswordSetSuccess(state),
|
|
passwordSetError: selectPasswordSetError(state),
|
|
language: selectLanguage(state),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doUserPasswordSet,
|
|
doToast,
|
|
doClearPasswordEntry,
|
|
})(UserSignIn);
|