Adjusted formatting

This commit is contained in:
cami 2021-06-23 03:40:37 +02:00
parent c57492f826
commit b22dd6f5e8
11 changed files with 29 additions and 37 deletions

View file

@ -6,10 +6,10 @@ import InputField from "../InputField";
import SubmitField from "../SubmitField";
export default function Login() {
const [username, setUsername] = useState('')
const [password, setPassword] = useState('')
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
const onSubmitClick = (e) => {
const onSubmitClick = (e) => {
e.preventDefault();
let opts = {
username: username,
@ -19,7 +19,7 @@ export default function Login() {
fetch("/api/register", {
method: "post",
body: JSON.stringify(opts),
})
});
};
const handleUsernameChange = (e) => {