Minor design fix

This commit is contained in:
Peter KW 2024-04-02 13:22:46 +02:00
parent ea5bbf5f0a
commit 75876e43da

View file

@ -25,22 +25,24 @@ function Login(props: {
}): JSX.Element { }): JSX.Element {
return ( return (
<form className="flex flex-col items-center" onSubmit={props.handleSubmit}> <form className="flex flex-col items-center" onSubmit={props.handleSubmit}>
<InputField <div className="space-y-3">
type="text" <InputField
label="Username" type="text"
onChange={(e) => { label="Username"
props.setUsername(e.target.value); onChange={(e) => {
}} props.setUsername(e.target.value);
value={props.username} }}
/> value={props.username}
<InputField />
type="password" <InputField
label="Password" type="password"
onChange={(e) => { label="Password"
props.setPassword(e.target.value); onChange={(e) => {
}} props.setPassword(e.target.value);
value={props.password} }}
/> value={props.password}
/>
</div>
<Button <Button
text="Login" text="Login"
onClick={(): void => { onClick={(): void => {