Skip to content

Commit 19aee87

Browse files
committed
chore: refactor Image to TwImage
1 parent 56f68c1 commit 19aee87

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/components/Hero/HubHero/index.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CommonHeroProps } from "@/lib/types"
22

33
import { CallToAction } from "@/components/Hero/CallToAction"
4-
import { Image } from "@/components/Image"
4+
import { TwImage } from "@/components/Image"
55
import { Stack } from "@/components/ui/flex"
66

77
import { cn } from "@/lib/utils/cn"
@@ -23,20 +23,14 @@ const HubHero = ({
2323

2424
return (
2525
<div className="relative">
26-
<Image
26+
<TwImage
2727
src={heroImg}
2828
alt=""
2929
priority
3030
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
3131
sizes="(max-width: 1504px) 100vw, 1504px"
3232
style={{ width: "100vw", objectFit: "cover" }}
33-
h={{
34-
base: "192px",
35-
md: "256px",
36-
lg: "320px",
37-
xl: "576px",
38-
"2xl": "672px",
39-
}}
33+
className="h-[192px] w-screen object-cover md:h-[256px] lg:h-[320px] xl:h-[576px] 2xl:h-[672px]"
4034
/>
4135
<Stack
4236
className={cn(

0 commit comments

Comments
 (0)