Compare commits

..

No commits in common. "9b4870995fcf90ac66b7cbd260309ac059b3c887" and "964ca236e89a2b73f8d18287b960064e65733042" have entirely different histories.

4 changed files with 5 additions and 7 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "enterfront", "name": "enterfront",
"version": "0.5.2", "version": "0.5.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "enterfront", "name": "enterfront",
"version": "0.5.2", "version": "0.5.1",
"dependencies": { "dependencies": {
"@brojs/cli": "^1.0.0", "@brojs/cli": "^1.0.0",
"@brojs/create": "^1.0.0", "@brojs/create": "^1.0.0",

View File

@ -29,5 +29,5 @@
"clean": "rimraf dist" "clean": "rimraf dist"
}, },
"name": "enterfront", "name": "enterfront",
"version": "0.5.2" "version": "0.5.1"
} }

View File

@ -6,7 +6,6 @@ import LoginTitle from "../components/reg/loginTitle.jsx";
import {MessageType} from "../backend/notifications/message.tsx"; import {MessageType} from "../backend/notifications/message.tsx";
import {displayMessage} from "../backend/notifications/notifications.js"; import {displayMessage} from "../backend/notifications/notifications.js";
import {post} from "../backend/api.js"; import {post} from "../backend/api.js";
import {URLs} from "../__data__/urls";
const SignIn = () => { const SignIn = () => {
const [name, setName] = useState(""); const [name, setName] = useState("");
@ -38,7 +37,7 @@ const SignIn = () => {
setNameErrorsCounter(0); setNameErrorsCounter(0);
localStorage.setItem('message', 'Successfully logged in!'); localStorage.setItem('message', 'Successfully logged in!');
window.location.href = URLs.baseUrl; window.location.href = "/";
} }
return ( return (

View File

@ -5,7 +5,6 @@ import LoginTitle from "../components/reg/loginTitle.jsx";
import {post} from "../backend/api"; import {post} from "../backend/api";
import {displayMessage} from "../backend/notifications/notifications"; import {displayMessage} from "../backend/notifications/notifications";
import {MessageType} from "../backend/notifications/message"; import {MessageType} from "../backend/notifications/message";
import { URLs } from "../__data__/urls";
const SignUp = () => { const SignUp = () => {
@ -48,7 +47,7 @@ const SignUp = () => {
localStorage.setItem('username', name); localStorage.setItem('username', name);
localStorage.setItem('message', 'Successfully signed up!'); localStorage.setItem('message', 'Successfully signed up!');
window.location.href = URLs.baseUrl; window.location.href = "/";
} }
return ( return (