Adjusted formatting
This commit is contained in:
parent
c57492f826
commit
b22dd6f5e8
11 changed files with 29 additions and 37 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue