From 795e63918cb7c6b2d3eacf1db9022c8741fcc23c Mon Sep 17 00:00:00 2001 From: cristian sandru Date: Mon, 2 Dec 2024 17:02:10 +0200 Subject: [PATCH] feat: display country on address preview --- .../components/AddressDisplay/AddressDisplay.vue | 14 +++++++++----- apps/web/components/AddressDisplay/types.ts | 3 +-- .../OrderAddressData/OrderAddressData.vue | 12 ++++-------- .../composables/useAggregatedCountries/types.ts | 1 + .../useAggregatedCountries.ts | 9 +++++++++ docs/changelog/changelog_en.md | 1 + 6 files changed, 25 insertions(+), 15 deletions(-) diff --git a/apps/web/components/AddressDisplay/AddressDisplay.vue b/apps/web/components/AddressDisplay/AddressDisplay.vue index f53276c6b..8091abe71 100644 --- a/apps/web/components/AddressDisplay/AddressDisplay.vue +++ b/apps/web/components/AddressDisplay/AddressDisplay.vue @@ -14,13 +14,17 @@

{{ `${userAddressGetters.getPostCode(address)} ${userAddressGetters.getCity(address)}` }}

-

- {{ countryName }} -

+

{{ countryName }}

+ diff --git a/apps/web/components/AddressDisplay/types.ts b/apps/web/components/AddressDisplay/types.ts index 74c1e5b4b..29cfb7bf0 100644 --- a/apps/web/components/AddressDisplay/types.ts +++ b/apps/web/components/AddressDisplay/types.ts @@ -1,6 +1,5 @@ -import type { Address } from '@plentymarkets/shop-api'; +import { type Address } from '@plentymarkets/shop-api'; export type AddressProps = { address: Address; - countryName?: string; }; diff --git a/apps/web/components/OrderAddressData/OrderAddressData.vue b/apps/web/components/OrderAddressData/OrderAddressData.vue index 35759463f..b3420c17c 100644 --- a/apps/web/components/OrderAddressData/OrderAddressData.vue +++ b/apps/web/components/OrderAddressData/OrderAddressData.vue @@ -1,16 +1,12 @@