From 02fb71c0ff69d293911f4b0945ab964a87402d0c Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 15 May 2023 15:38:04 -0300
Subject: third form and placeholder for the next ones

---
 packages/exchange-backoffice-ui/src/NiceForm.tsx | 65 +++++++++++-------------
 1 file changed, 31 insertions(+), 34 deletions(-)

(limited to 'packages/exchange-backoffice-ui/src/NiceForm.tsx')

diff --git a/packages/exchange-backoffice-ui/src/NiceForm.tsx b/packages/exchange-backoffice-ui/src/NiceForm.tsx
index 64f8aceea..b7790bbec 100644
--- a/packages/exchange-backoffice-ui/src/NiceForm.tsx
+++ b/packages/exchange-backoffice-ui/src/NiceForm.tsx
@@ -14,43 +14,40 @@ export function NiceForm<T extends object>({
   onUpdate: (d: Partial<T>) => void;
 }) {
   const { i18n } = useTranslationContext();
-  console.log("render");
   return (
-    <Fragment>
-      <FormProvider
-        initialValue={initial}
-        onUpdate={onUpdate}
-        computeFormState={form.behavior}
-      >
-        <div class="space-y-10 divide-y -mt-5 divide-gray-900/10">
-          {form.design.map((section, i) => {
-            return (
-              <div class="grid grid-cols-1 gap-x-8 gap-y-8 pt-5 md:grid-cols-3">
-                <div class="px-4 sm:px-0">
-                  <h2 class="text-base font-semibold leading-7 text-gray-900">
-                    {section.title}
-                  </h2>
-                  {section.description && (
-                    <p class="mt-1 text-sm leading-6 text-gray-600">
-                      {section.description}
-                    </p>
-                  )}
-                </div>
-                <div class="bg-white shadow-sm ring-1 ring-gray-900/5 rounded-md md:col-span-2">
-                  <div class="p-3">
-                    <div class="grid max-w-2xl grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6">
-                      <RenderAllFieldsByUiConfig
-                        key={i}
-                        fields={section.fields}
-                      />
-                    </div>
+    <FormProvider
+      initialValue={initial}
+      onUpdate={onUpdate}
+      computeFormState={form.behavior}
+    >
+      <div class="space-y-10 divide-y -mt-5 divide-gray-900/10">
+        {form.design.map((section, i) => {
+          return (
+            <div class="grid grid-cols-1 gap-x-8 gap-y-8 pt-5 md:grid-cols-3">
+              <div class="px-4 sm:px-0">
+                <h2 class="text-base font-semibold leading-7 text-gray-900">
+                  {section.title}
+                </h2>
+                {section.description && (
+                  <p class="mt-1 text-sm leading-6 text-gray-600">
+                    {section.description}
+                  </p>
+                )}
+              </div>
+              <div class="bg-white shadow-sm ring-1 ring-gray-900/5 rounded-md md:col-span-2">
+                <div class="p-3">
+                  <div class="grid max-w-2xl grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6">
+                    <RenderAllFieldsByUiConfig
+                      key={i}
+                      fields={section.fields}
+                    />
                   </div>
                 </div>
               </div>
-            );
-          })}
-        </div>
-      </FormProvider>
-    </Fragment>
+            </div>
+          );
+        })}
+      </div>
+    </FormProvider>
   );
 }
-- 
cgit v1.2.3

