Skip to content

Commit

Permalink
Uncomment signup and update staticwebapp
Browse files Browse the repository at this point in the history
  • Loading branch information
xvxnoah committed Nov 8, 2023
1 parent 6320ed0 commit 52259ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/Signup.jsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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("");
Expand Down Expand Up @@ -69,7 +68,6 @@ function Signup() {
/* Functions */

/* Validations */
/*
const isUsernameValid = (username = "") => {
if (username.length === 0) {
setUsernameValidationMessage("This field is required");
Expand Down Expand Up @@ -144,7 +142,6 @@ function Signup() {
};

/* Requests */
/*
const isUsernameAvailable = async (username = "") => {
if (!isDoingRequest) {
setIsDoingRequest(true);
Expand Down Expand Up @@ -260,7 +257,6 @@ function Signup() {
};

/* Events */
/*
const onUsernameChange = ({ target: { value } }) => {
setUsername(value);
isUsernameValid(value);
Expand Down Expand Up @@ -332,9 +328,6 @@ function Signup() {

return (
<div>
This is the Signup page
</div>
/*<div>
<Container className="py-5 min-vh-100">
<Row>
<Col sm={3}></Col>
Expand Down Expand Up @@ -577,7 +570,7 @@ function Signup() {
</Button>
</Modal.Footer>
</Modal>
</div>*/
</div>
);
}

Expand Down
6 changes: 6 additions & 0 deletions staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*", "/js/*"]
},
"responseOverrides": {
"404": {
"rewrite": "/index.html",
"statusCode": 200
}
}
}

0 comments on commit 52259ce

Please sign in to comment.