mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
WIP feature/Register
This commit is contained in:
13
client/src/connectors/InviteForm.connect.js
Normal file
13
client/src/connectors/InviteForm.connect.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { submitInvite, submitSendInvite } from 'store/Invite/invite.action';
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
return {};
|
||||
};
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
requestSubmitInvite: (form, token) => dispatch(submitInvite({ form, token })),
|
||||
requestSendInvite: (form) => dispatch(submitSendInvite({ form })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
13
client/src/connectors/ResetPassword.connect.js
Normal file
13
client/src/connectors/ResetPassword.connect.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { submitResetPassword } from 'store/resetPassword/resetPassword.action';
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
return {};
|
||||
};
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
requestResetPassword: (password) =>
|
||||
dispatch(submitResetPassword({password})),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
Reference in New Issue
Block a user