-
-
{name}
-
- {description}
-
- {pickupPlaceDetail !== null && pickupPlaceDetail !== undefined && (
- <>
-
+
+
+
+
+
{name}
+
+ {description && (
+
+ {description}
+
+ )}
+
+ {pickupPlaceDetail && (
+
+
{pickupPlaceDetail.name}
-
-
+
+
+
{pickupPlaceDetail.street +
', ' +
pickupPlaceDetail.postcode +
', ' +
pickupPlaceDetail.city}
-
- {t('Open') + ': '}
-
- >
+
+
+
{t('Open') + ': '}
+
+
+
+ )}
+
+ {daysUntilDelivery !== undefined && (
+
+ {getDeliveryMessage(daysUntilDelivery, !!pickupPlaceDetail, t)}
+
)}
- {daysUntilDelivery !== undefined && (
-
- {getDeliveryMessage(daysUntilDelivery, pickupPlaceDetail !== undefined, t)}
-
- )}
- {price !== undefined && (
-
{formatPrice(price.priceWithVat)}
-
+
)}
);
@@ -73,6 +96,7 @@ const getDeliveryMessage = (daysUntilDelivery: number, isPersonalPickup: boolean
if (daysUntilDelivery < 7) {
return t('Personal pickup in {{ count }} days', { count: daysUntilDelivery });
}
+
return t('Personal pickup in {{count}} weeks', {
count: Math.ceil(daysUntilDelivery / 7),
});
@@ -83,6 +107,7 @@ const getDeliveryMessage = (daysUntilDelivery: number, isPersonalPickup: boolean
count: daysUntilDelivery,
});
}
+
return t('Delivery in {{count}} weeks', {
count: Math.ceil(daysUntilDelivery / 7),
});
diff --git a/storefront/styles/globals.css b/storefront/styles/globals.css
index 2ad2d93372..4981ad9573 100644
--- a/storefront/styles/globals.css
+++ b/storefront/styles/globals.css
@@ -73,7 +73,7 @@ input::-webkit-inner-spin-button {
}
svg {
- @apply inline-flex h-full w-[14px] text-center font-normal normal-case leading-none;
+ @apply inline-flex w-[14px] text-center font-normal normal-case leading-none;
}
/* Firefox */