From 87efcc3932577d65d5c341fb507a27e643c12d64 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Wed, 2 Nov 2022 09:42:19 +0800 Subject: [PATCH] [offers][feat] tweak offer background submission form --- .../components/offers/forms/FormSection.tsx | 18 + .../offersSubmission/OffersSubmissionForm.tsx | 10 +- .../submissionForm/BackgroundForm.tsx | 350 ++++++++---------- .../submissionForm/OfferDetailsForm.tsx | 78 ++-- 4 files changed, 214 insertions(+), 242 deletions(-) create mode 100644 apps/portal/src/components/offers/forms/FormSection.tsx diff --git a/apps/portal/src/components/offers/forms/FormSection.tsx b/apps/portal/src/components/offers/forms/FormSection.tsx new file mode 100644 index 00000000..e83b8c70 --- /dev/null +++ b/apps/portal/src/components/offers/forms/FormSection.tsx @@ -0,0 +1,18 @@ +import { HorizontalDivider } from '@tih/ui'; + +export default function FormSection({ + children, + title, +}: Readonly<{ children: React.ReactNode; title: string }>) { + return ( +
+
+

+ {title} +

+ +
+
{children}
+
+ ); +} diff --git a/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx b/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx index 440e2686..8a6527bc 100644 --- a/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx +++ b/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx @@ -264,10 +264,10 @@ export default function OffersSubmissionForm({ }, []); return ( -
-
-
-
+
+
+
+