diff --git a/src/components/Signup.jsx b/src/components/Signup.jsx index 250caf5..c1d8338 100644 --- a/src/components/Signup.jsx +++ b/src/components/Signup.jsx @@ -1,7 +1,7 @@ import React, { useState } from "react"; import { Link, useHistory, useNavigate } from "react-router-dom"; -/* + //Logic packages import { useState } from "react"; import { useNavigate } from "react-router-dom"; @@ -24,11 +24,10 @@ import "../css/common.css"; //Assets import logo from "../assets/logo.png"; -import terms from "../assets/jsonData/terms.json";*/ +import terms from "../assets/jsonData/terms.json"; function Signup() { /* Variables */ -/* const [username, setUsername] = useState(""); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); @@ -69,7 +68,6 @@ function Signup() { /* Functions */ /* Validations */ -/* const isUsernameValid = (username = "") => { if (username.length === 0) { setUsernameValidationMessage("This field is required"); @@ -144,7 +142,6 @@ function Signup() { }; /* Requests */ -/* const isUsernameAvailable = async (username = "") => { if (!isDoingRequest) { setIsDoingRequest(true); @@ -260,7 +257,6 @@ function Signup() { }; /* Events */ -/* const onUsernameChange = ({ target: { value } }) => { setUsername(value); isUsernameValid(value); @@ -332,9 +328,6 @@ function Signup() { return (