d9bf72a351
sync settings backout nav cases and anon preference key more robust backout header put notificationSettings under backout bar review changes
20 lines
747 B
JavaScript
20 lines
747 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectUser, selectPasswordSetSuccess, selectPasswordSetError } from 'redux/selectors/user';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import { doUserPasswordSet, doClearPasswordEntry } from 'redux/actions/user';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
import UserSignIn from './view';
|
|
import { SETTINGS } from 'lbry-redux';
|
|
|
|
const select = state => ({
|
|
user: selectUser(state),
|
|
passwordSetSuccess: selectPasswordSetSuccess(state),
|
|
passwordSetError: selectPasswordSetError(state),
|
|
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doUserPasswordSet,
|
|
doToast,
|
|
doClearPasswordEntry,
|
|
})(UserSignIn);
|