You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
612 B
JavaScript
27 lines
612 B
JavaScript
import { bindActionCreators } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
|
|
import entryActions from '../entry-actions';
|
|
import OidcLogin from '../components/OIDC';
|
|
|
|
const mapStateToProps = ({
|
|
ui: {
|
|
authenticateForm: { data: defaultData, isSubmitting, error },
|
|
},
|
|
}) => ({
|
|
defaultData,
|
|
isSubmitting,
|
|
error,
|
|
});
|
|
|
|
const mapDispatchToProps = (dispatch) =>
|
|
bindActionCreators(
|
|
{
|
|
onAuthenticate: entryActions.authenticate,
|
|
onMessageDismiss: entryActions.clearAuthenticateError,
|
|
},
|
|
dispatch,
|
|
);
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(OidcLogin);
|