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

Hasan/Pr 00 hero eu issue #6336

Closed
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
11 changes: 6 additions & 5 deletions src/features/pages/home/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface HomeHeroProps {
}

const HomeHero: React.FC<HomeHeroProps> = () => {
const { is_eu } = useRegion()
const { is_eu, is_region_loading } = useRegion()

return (
<Section className="h-[calc(100vh-136px)] min-h-[587px] relative isolate overflow-hidden">
Expand All @@ -41,7 +41,7 @@ const HomeHero: React.FC<HomeHeroProps> = () => {
<Heading.H1 className="text-solid-slate-50 text-[34px] lg:text-heading-h1">
<Localize translate_text="_t_Trading for anyone. Anywhere. Anytime._t_" />
</Heading.H1>
{is_eu ? (
{is_eu && !is_region_loading ? (
<Text
size="md"
className={clsx('text-solid-slate-50 mt-general-md', hero_content_text)}
Expand All @@ -62,8 +62,8 @@ const HomeHero: React.FC<HomeHeroProps> = () => {
colorStyle="coral"
/>
</div>
{!is_eu && <HeroAwardImages />}
{is_eu ? (
{!is_eu && !is_region_loading && <HeroAwardImages />}
{is_eu && !is_region_loading && (
<div className={clsx('absolute inset-50 flex items-end -z-10', hero_img_eu)}>
<StaticImage
src="../../../../images/migration/home/home_hero_new_eu.png"
Expand All @@ -73,7 +73,8 @@ const HomeHero: React.FC<HomeHeroProps> = () => {
loading="eager"
/>
</div>
) : (
)}
{!is_eu && !is_region_loading && (
<div className={clsx('absolute inset-50 flex items-end -z-10', hero_img)}>
<StaticImage
src="../../../../images/migration/home/home_hero_new.png"
Expand Down
Loading