From 6d5c25be5cd14a362b4a2e48a37e2e6cc74e6308 Mon Sep 17 00:00:00 2001 From: Davenludd Date: Sat, 16 Mar 2024 15:14:03 +0100 Subject: [PATCH] Refactor Register component to use InputField component --- frontend/src/Components/Register.tsx | 52 +++++++++------------------- 1 file changed, 16 insertions(+), 36 deletions(-) diff --git a/frontend/src/Components/Register.tsx b/frontend/src/Components/Register.tsx index 9b435f1..b0527da 100644 --- a/frontend/src/Components/Register.tsx +++ b/frontend/src/Components/Register.tsx @@ -58,42 +58,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); + }} + />