RegistrationPage.js 791 B

12345678910111213141516171819202122232425262728293031
  1. import React from 'react';
  2. import { connect } from "react-redux";
  3. import { Link } from "react-router-dom";
  4. import { postCheckInSubmit } from "../../actions/registration";
  5. import './registration-page.scss';
  6. import RegistrationForm from '../../components/registration-form/RegistrationForm';
  7. export class Login extends React.Component {
  8. render() {
  9. return (
  10. <div>
  11. <RegistrationForm postCheckInSubmit={this.props.postCheckInSubmit}/>
  12. <p className="form-quest">You have an account? <Link to="/login">Login now</Link></p>
  13. </div>
  14. )
  15. }
  16. }
  17. const mapStateToProps = state => {
  18. return {
  19. user: state.registration.user
  20. };
  21. };
  22. export default connect(
  23. mapStateToProps,
  24. { postCheckInSubmit }
  25. )(Login);