Skip to content

Commit 2b3c5e9

Browse files
committed
fix: props, types
1 parent dbee423 commit 2b3c5e9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/Hero/HomeHero/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getImageProps } from "next/image"
22
import { getLocale, getTranslations } from "next-intl/server"
33

4-
import type { ClassNameProp, CommonHeroProps } from "@/lib/types"
4+
import type { ClassNameProp } from "@/lib/types"
55

66
import LanguageMorpher from "@/components/Homepage/LanguageMorpher"
77

@@ -11,9 +11,7 @@ import { breakpointAsNumber } from "@/lib/utils/screen"
1111
import heroBase from "@/public/images/home/hero.png"
1212
import hero2xl from "@/public/images/home/hero-2xl.png"
1313

14-
export type HomeHeroProps = Pick<CommonHeroProps, "heroImg"> & ClassNameProp
15-
16-
const HomeHero = async ({ className }: HomeHeroProps) => {
14+
const HomeHero = async ({ className }: ClassNameProp) => {
1715
const locale = getLocale()
1816
const t = await getTranslations({ locale, namespace: "page-index" })
1917

src/components/Hero/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { default as ContentHero, type ContentHeroProps } from "./ContentHero"
2-
export { default as HomeHero, type HomeHeroProps } from "./HomeHero"
2+
export { default as HomeHero } from "./HomeHero"
33
export { default as HubHero } from "./HubHero"
44
export { default as MdxHero, type MdxHeroProps } from "./MdxHero"

0 commit comments

Comments
 (0)