mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
22 lines
587 B
JavaScript
Executable file
22 lines
587 B
JavaScript
Executable file
import { bindActionCreators } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
|
|
import { authenticate, clearAuthenticateError } from '../actions/entry';
|
|
import Login from '../components/Login';
|
|
|
|
const mapStateToProps = ({ authenticateForm: { data: defaultData, isSubmitting, error } }) => ({
|
|
defaultData,
|
|
isSubmitting,
|
|
error,
|
|
});
|
|
|
|
const mapDispatchToProps = dispatch =>
|
|
bindActionCreators(
|
|
{
|
|
onAuthenticate: authenticate,
|
|
onMessageDismiss: clearAuthenticateError,
|
|
},
|
|
dispatch,
|
|
);
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Login);
|