From 4dc5c5abe050f05746306454934a73c1e0372f62 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Fri, 27 Mar 2026 13:14:54 +0200 Subject: [PATCH] wip --- .../src/components/Select/SalutationList.tsx | 1 + .../CustomerForm/CustomerFloatingActions.tsx | 30 ++----- .../CustomerForm/CustomerFormContent.tsx | 5 +- .../CustomerFormFinancialSection.tsx | 8 +- .../CustomerForm/CustomerFormFormik.tsx | 3 + .../VendorForm/VendorBillingAddress.tsx | 21 +++-- .../VendorForm/VendorFinanicalPanelTab.tsx | 17 ++-- .../VendorForm/VendorFloatingActions.tsx | 29 ++----- .../VendorFormAfterPrimarySection.tsx | 21 +++-- .../VendorForm/VendorFormBasicSection.tsx | 26 ++++-- .../Vendors/VendorForm/VendorFormContent.tsx | 5 +- .../VendorForm/VendorFormFinancialSection.tsx | 5 ++ .../Vendors/VendorForm/VendorFormFormik.tsx | 4 +- .../VendorForm/VendorFormNotesSection.tsx | 4 +- .../VendorForm/VendorFormPrimarySection.tsx | 82 ------------------- .../VendorForm/VendorShippingAddress.tsx | 21 +++-- .../Vendors/VendorForm/VendorsTabs.tsx | 43 ---------- 17 files changed, 107 insertions(+), 218 deletions(-) delete mode 100644 packages/webapp/src/containers/Vendors/VendorForm/VendorFormPrimarySection.tsx delete mode 100644 packages/webapp/src/containers/Vendors/VendorForm/VendorsTabs.tsx diff --git a/packages/webapp/src/components/Select/SalutationList.tsx b/packages/webapp/src/components/Select/SalutationList.tsx index a57dd1229..d869b20fc 100644 --- a/packages/webapp/src/components/Select/SalutationList.tsx +++ b/packages/webapp/src/components/Select/SalutationList.tsx @@ -28,6 +28,7 @@ export function SalutationList({ ...restProps }: SalutationListProps) { items={items} valueAccessor={'key'} textAccessor={'label'} + labelAccessor={'_label'} placeholder={intl.get('salutation')} filterable={false} {...restProps} diff --git a/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx b/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx index f1b958914..f1de71a12 100644 --- a/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx +++ b/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx @@ -22,18 +22,13 @@ export function CustomerFloatingActions() { }; // Formik context. - const { resetForm, submitForm, isSubmitting } = useFormikContext(); + const { submitForm, isSubmitting } = useFormikContext(); // Handle submit button click. const handleSubmitBtnClick = (_event: React.MouseEvent) => { setSubmitPayload({ noRedirect: false }); }; - // handle clear button clicl. - const handleClearBtnClick = (_event: React.MouseEvent) => { - resetForm(); - }; - // Handle submit & new button click. const handleSubmitAndNewClick = (_event: React.MouseEvent) => { submitForm(); @@ -44,7 +39,7 @@ export function CustomerFloatingActions() { {/* ----------- Save and New ----------- */} - } - minimal={true} interactionKind={PopoverInteractionKind.CLICK} - position={Position.BOTTOM_LEFT} + position={Position.BOTTOM_RIGHT} + minimal >