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

Fasih/: removed home banner EU condition #6911

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions src/features/pages/home/hero/hero-image.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
import React from 'react'
import { StaticImage } from 'gatsby-plugin-image'
import clsx from 'clsx'
import { hero_img_eu, hero_img } from './styles.module.scss'
import { isEuDomain } from 'common/utility'
import useRegion from 'components/hooks/use-region'
import { hero_img } from './styles.module.scss'

const HeroImage = () => {
const { is_eu } = useRegion()
return isEuDomain() || is_eu ? (
<div className={clsx('absolute inset-50 flex items-end -z-10', hero_img_eu)}>
<StaticImage
fasihali-deriv marked this conversation as resolved.
Show resolved Hide resolved
src="../../../../images/migration/home/home_hero_new_eu.png"
alt="hero image"
placeholder="none"
formats={['auto', 'webp']}
loading="eager"
/>
</div>
) : (
return (
<div className={clsx('absolute inset-50 flex items-end -z-10', hero_img)}>
<StaticImage
src="../../../../images/migration/home/home_hero_new.png"
Expand Down
2 changes: 1 addition & 1 deletion src/features/pages/home/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const HomeHero: React.FC<HomeHeroProps> = () => {
/>
</div>
{is_mounted && <HeroAwardImages />}
{is_mounted && <HeroImage />}
{<HeroImage />}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not need {} @fasihali-deriv

</FluidContainer>
<div className={clsx('absolute -z-10 inset-50', hero_content_gradient)}></div>
</Section>
Expand Down
Binary file removed src/images/migration/home/home_hero_new_eu.png
Binary file not shown.
Loading