From 38d9b2f89e51ad76a5878d2d7ce122e2ab19a4a4 Mon Sep 17 00:00:00 2001 From: Neil Mistry <30687441+neilmistryamplience@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:09:19 +0100 Subject: [PATCH] fix: Display of locationName and click and collect with crash fix --- components/cms-modern/Store/Store.tsx | 42 ++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/components/cms-modern/Store/Store.tsx b/components/cms-modern/Store/Store.tsx index e2905ab4..7fddf61f 100644 --- a/components/cms-modern/Store/Store.tsx +++ b/components/cms-modern/Store/Store.tsx @@ -13,11 +13,12 @@ interface StoreProps { image: any; imageAltText: string; locationName: string; + locationAddress: string; details: string; } const Store = (props: StoreProps) => { - const { details = '', keyElements, image, imageAltText, locationName = '' } = props; + const { details = '', keyElements, image, imageAltText, locationAddress = '', locationName = '' } = props; const options = { overrides: { @@ -60,6 +61,24 @@ const Store = (props: StoreProps) => { alt={imageAltText ? imageAltText : locationName} imageAltText={imageAltText ? imageAltText : locationName} /> + {(locationAddress || locationName) && ( + + + {locationName} + + + {locationAddress} + + + )} + {keyElements?.parking && ( @@ -103,6 +122,27 @@ const Store = (props: StoreProps) => { )} + {keyElements?.clickAndCollect && ( + + + Click & Collect + + Click & Collect + + + + )}