From bd176973a8101355c13a4864d5652823d9d97a18 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Thu, 22 Jan 2026 10:05:59 +0700 Subject: [PATCH] Add verified badge top-right on SupplierCard, transport icons on HubCard --- app/components/catalog/HubCard.vue | 15 +++++++++++++-- app/components/catalog/SupplierCard.vue | 8 +++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/app/components/catalog/HubCard.vue b/app/components/catalog/HubCard.vue index da02a61..3b15515 100644 --- a/app/components/catalog/HubCard.vue +++ b/app/components/catalog/HubCard.vue @@ -16,8 +16,16 @@ ]" >
- - {{ hub.name }} + +
+ {{ hub.name }} +
+ + + + +
+
@@ -41,6 +49,7 @@ interface Hub { country?: string | null countryCode?: string | null distance?: string + transportTypes?: string[] | null } const props = defineProps<{ @@ -72,4 +81,6 @@ const countryFlag = computed(() => { } return '🌍' }) + +const hasTransport = (type: string) => props.hub.transportTypes?.includes(type) diff --git a/app/components/catalog/SupplierCard.vue b/app/components/catalog/SupplierCard.vue index bbe8a18..7d6c6d0 100644 --- a/app/components/catalog/SupplierCard.vue +++ b/app/components/catalog/SupplierCard.vue @@ -9,10 +9,15 @@ + + + {{ t('catalogSupplier.badges.verified') }} +
@@ -25,9 +30,6 @@ {{ supplier.name }}
- - {{ t('catalogSupplier.badges.verified') }} - {{ reliabilityLabel }}