mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
WIP / Design login and register page.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { submitResetPassword } from 'store/resetPassword/resetPassword.action';
|
||||
import { submitResetPassword } from 'store/authentication/authentication.actions';
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
return {};
|
||||
@@ -7,7 +7,7 @@ export const mapStateToProps = (state, props) => {
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
requestResetPassword: (password) =>
|
||||
dispatch(submitResetPassword({password})),
|
||||
dispatch(submitResetPassword({ password })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
|
||||
13
client/src/connectors/SendResetPassword.connect.js
Normal file
13
client/src/connectors/SendResetPassword.connect.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { submitSendResetPassword } from 'store/authentication/authentication.actions';
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
return {};
|
||||
};
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
requestSendResetPassword: (email) =>
|
||||
dispatch(submitSendResetPassword({ email })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
Reference in New Issue
Block a user