Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
chore: move the asset path in to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
habib-deriv committed Sep 28, 2023
1 parent 37011e5 commit 7bb2a33
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/who-we-are/components/_hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,15 @@ 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 (
<ParentWrapper bg_image={bg_image}>
<ContentWrapper jc="center">
<Desktop>
<StyledFlex>
{/* Todo: Remove this Hero Image section from Strapi then from here */}
{hero?.hero_image?.localFile?.publicURL && (
<StyledImage
src={hero?.hero_image?.localFile?.publicURL}
alt="hero image desktop"
/>
)}
{deriv_icon && <StyledImage src={deriv_icon} alt="hero image desktop" />}
<Flex jc="center" p="0 32px" max_width="1440px">
<DesktopHeader>
<Localize translate_text={hero?.header} />
Expand Down

0 comments on commit 7bb2a33

Please sign in to comment.