From f867297052460b8c13021d06f274cd14110b13c7 Mon Sep 17 00:00:00 2001 From: Alexander Saiannyi Date: Thu, 1 Aug 2024 09:57:47 +0200 Subject: [PATCH] refactor(core): imrpove spacing between fields in account --- .../[tab]/_components/addresses-content/add-address.tsx | 2 +- .../[tab]/_components/addresses-content/edit-address.tsx | 2 +- .../account/[tab]/_components/update-settings-form/index.tsx | 2 +- .../_components/register-customer-form/index.tsx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/add-address.tsx b/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/add-address.tsx index 6d1581acd7..6fb1a6c1ba 100644 --- a/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/add-address.tsx +++ b/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/add-address.tsx @@ -201,7 +201,7 @@ export const AddAddress = ({ )}
-
+
{addressFields.map((field) => { const fieldId = field.entityId; const fieldName = createFieldName(field, 'address'); diff --git a/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/edit-address.tsx b/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/edit-address.tsx index 79b0e0d8c5..1877c8e388 100644 --- a/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/edit-address.tsx +++ b/core/app/[locale]/(default)/account/[tab]/_components/addresses-content/edit-address.tsx @@ -228,7 +228,7 @@ export const EditAddress = ({ )} -
+
{addressFields.map((field) => { const fieldId = field.entityId; const fieldName = createFieldName(field, 'address'); diff --git a/core/app/[locale]/(default)/account/[tab]/_components/update-settings-form/index.tsx b/core/app/[locale]/(default)/account/[tab]/_components/update-settings-form/index.tsx index 21ef2b21cc..2f64e89dcb 100644 --- a/core/app/[locale]/(default)/account/[tab]/_components/update-settings-form/index.tsx +++ b/core/app/[locale]/(default)/account/[tab]/_components/update-settings-form/index.tsx @@ -210,7 +210,7 @@ export const UpdateSettingsForm = ({ )} -
+
{addressFields.map((field) => { const fieldName = FieldNameToFieldId[field.entityId] ?? ''; diff --git a/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/index.tsx b/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/index.tsx index 8c4efbbc6a..a30a7beafa 100644 --- a/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/index.tsx +++ b/core/app/[locale]/(default)/login/register-customer/_components/register-customer-form/index.tsx @@ -273,7 +273,7 @@ export const RegisterCustomerForm = ({ )} -
+
{customerFields .filter((field) => !CUSTOMER_FIELDS_TO_EXCLUDE.includes(field.entityId)) .map((field) => { @@ -393,7 +393,7 @@ export const RegisterCustomerForm = ({ } })}
-
+
{addressFields.map((field) => { const fieldId = field.entityId; const fieldName = createFieldName(field, 'address');