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

27 lines
605 B
JavaScript
Raw Normal View History

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