From a7508df0b3da0fa32dcb405ca7a6ed1a3d31b486 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Wed, 13 Dec 2023 21:43:21 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Styling=20form=20inputs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shared/ConnectionForm/ConnectionForm.tsx | 124 +++++------------- 1 file changed, 36 insertions(+), 88 deletions(-) diff --git a/src/client/components/shared/ConnectionForm/ConnectionForm.tsx b/src/client/components/shared/ConnectionForm/ConnectionForm.tsx index 139626b..573f1b8 100644 --- a/src/client/components/shared/ConnectionForm/ConnectionForm.tsx +++ b/src/client/components/shared/ConnectionForm/ConnectionForm.tsx @@ -17,36 +17,23 @@ export const ConnectionForm = ({

{formHeading}

-
+
+ {({ input, meta }) => (
- {/* */} -
- - - +
+
@@ -54,87 +41,48 @@ export const ConnectionForm = ({ {...input} type="text" placeholder="hostname" - className="ml-2 bg-transparent py-2 px-2 block w-full rounded-md sm:text-sm sm:leading-5 focus:outline-none focus:shadow-outline-blue focus:border-blue-300" + className="ml-2 bg-transparent py-2 px-2 border-r border-gray-300 w-full h-10 sm:text-sm sm:leading-5 focus:outline-none focus:shadow-outline-blue focus:border-blue-300" /> + + {/* port */} + + {meta.error && meta.touched && ( - - {meta.error} - + {meta.error} )}
)}
- -
-

- - - - - - - -

-
- - {({ input, meta }) => ( -
- - {meta.error && meta.touched && ( - - {meta.error} - - )} -
- )} -
-
-

+ + +

+
-

-
-
- -
-
-

- - - - -

-
-
-

- - - - -

-
+ + +
+ + + +