From 7bb2a336e5e930ddd0dabb9c9e482d7100f03488 Mon Sep 17 00:00:00 2001 From: habib-binary Date: Thu, 28 Sep 2023 10:06:23 +0600 Subject: [PATCH] chore: move the asset path in to variable --- src/pages/who-we-are/components/_hero.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/who-we-are/components/_hero.tsx b/src/pages/who-we-are/components/_hero.tsx index 45d197339b9..ed830ba0871 100644 --- a/src/pages/who-we-are/components/_hero.tsx +++ b/src/pages/who-we-are/components/_hero.tsx @@ -80,6 +80,7 @@ const Hero = ({ hero }: THero) => { const bg_image = is_mobile_or_tablet ? hero?.bg_mobile?.localFile?.publicURL : hero?.bg_desktop?.localFile?.publicURL + const deriv_icon = hero?.hero_image?.localFile?.publicURL return ( @@ -87,12 +88,7 @@ const Hero = ({ hero }: THero) => { {/* Todo: Remove this Hero Image section from Strapi then from here */} - {hero?.hero_image?.localFile?.publicURL && ( - - )} + {deriv_icon && }