// © XlXi 2021 // Graphictoria 5 import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import ReCAPTCHA from 'react-google-recaptcha'; import Loader from '../../Components/Loader.js'; const RegisterForm = (props) => { const RegistrationAreas = [ { text: 'Username', type: 'username', id: 'username' }, { text: 'Email', type: 'email', id: 'email' }, { text: 'Password', type: 'password', id: 'password' }, { text: 'Confirm password', type: 'password', id: 'confirmation' } ]; const [waitingForSubmission, setWaitingForSubmission] = useState(false); const [values, setValues] = useState({ username: '', email: '', password: '', confirmation: '' }); const [validity, setValidity] = useState({ username: false, email: false, password: false, confirmation: false }); const [validityMessages, setValidityMessages] = useState({ username: 'test', email: '', password: '', confirmation: '' }); const handleChange = (e) => { const {id, value} = e.target; setValues(prevState => ({ ...prevState, [id] : value })); } function SubmitRegistration() { setWaitingForSubmission(true); } return ( waitingForSubmission ? : ( <>

Make sure your password is unique!

{ RegistrationAreas.map(({ text, type, id }, index) => ) }
Already have an account?

By creating an account, you agree to our Terms of Service and our Privacy Policy.

) ); }; export default RegisterForm;