frontend ui configured.
parent
5e84e0a76f
commit
5bff0840ee
@ -0,0 +1,7 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
const OidcLogin = react.memo(() => {
|
||||||
|
return <div>test</div>;
|
||||||
|
});
|
||||||
|
|
||||||
|
export default OidcLogin;
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
import OidcLogin from './OidcLogin';
|
||||||
|
|
||||||
|
export default OidcLogin;
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
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);
|
||||||
Loading…
Reference in New Issue