WIP / Design login and register page.

This commit is contained in:
elforjani3
2020-04-29 17:36:02 +02:00
parent 6d0ad42582
commit b8b8283385
11 changed files with 1050 additions and 447 deletions

View File

@@ -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);

View 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);