diff --git a/frontend/src/Components/Register.tsx b/frontend/src/Components/Register.tsx index faa1a88..0c0fcd0 100644 --- a/frontend/src/Components/Register.tsx +++ b/frontend/src/Components/Register.tsx @@ -4,6 +4,32 @@ import { api } from "../API/API"; import Logo from "../assets/Logo.svg"; import Button from "./Button"; +function InputField(props: { + label: string; + type: string; + value: string; + onChange: (e: React.ChangeEvent) => void; +}): JSX.Element { + return ( +
+ + +
+ ); +} + export default function Register(): JSX.Element { const [username, setUsername] = useState(""); const [password, setPassword] = useState(""); @@ -31,42 +57,22 @@ export default function Register(): JSX.Element {

Register New User

-
- - { - setUsername(e.target.value); - }} - /> -
-
- - { - setPassword(e.target.value); - }} - /> -
+ { + setUsername(e.target.value); + }} + /> + { + setPassword(e.target.value); + }} + />