1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00
planka/client/src/containers/LoginContainer.js

23 lines
587 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { authenticate, clearAuthenticateError } from '../actions/entry';
2019-08-31 04:07:25 +05:00
import Login from '../components/Login';
const mapStateToProps = ({ authenticateForm: { data: defaultData, isSubmitting, error } }) => ({
defaultData,
isSubmitting,
error,
});
2019-08-31 04:07:25 +05:00
const mapDispatchToProps = dispatch =>
bindActionCreators(
{
onAuthenticate: authenticate,
onMessageDismiss: clearAuthenticateError,
},
dispatch,
);
2019-08-31 04:07:25 +05:00
export default connect(mapStateToProps, mapDispatchToProps)(Login);