Skip to content

Commit 678db13

Browse files
fix(pages): fix type errors
1 parent 06bbd41 commit 678db13

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

src/pages/layer-2.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@ import {
1515
UnorderedList,
1616
} from "@chakra-ui/react"
1717

18-
import type {
19-
BasePageProps,
20-
CommonHeroProps,
21-
TranslationKey,
22-
} from "@/lib/types"
18+
import type { BasePageProps, TranslationKey } from "@/lib/types"
2319

2420
import { ButtonLink } from "@/components/Buttons"
2521
import Card from "@/components/Card"
2622
import ExpandableCard from "@/components/ExpandableCard"
2723
import FeedbackCard from "@/components/FeedbackCard"
2824
import { HubHero } from "@/components/Hero"
25+
import type { HubHeroProps } from "@/components/Hero/HubHero"
2926
import { Image } from "@/components/Image"
3027
import InfoBanner from "@/components/InfoBanner"
3128
import Layer2ProductCard from "@/components/Layer2ProductCard"
@@ -128,7 +125,7 @@ const Layer2Page = () => {
128125
const { t } = useTranslation("page-layer-2")
129126
const layer2DataCombined = [...layer2Data.optimistic, ...layer2Data.zk]
130127

131-
const heroContent: CommonHeroProps = {
128+
const heroContent: HubHeroProps = {
132129
title: t("layer-2-hero-title"),
133130
header: t("layer-2-hero-header"),
134131
description: t("layer-2-hero-subtitle"),

src/pages/learn.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ import {
1212
useToken,
1313
} from "@chakra-ui/react"
1414

15-
import type {
16-
BasePageProps,
17-
ChildOnlyProp,
18-
CommonHeroProps,
19-
ToCItem,
20-
} from "@/lib/types"
15+
import type { BasePageProps, ChildOnlyProp, ToCItem } from "@/lib/types"
2116

2217
import ButtonLink from "@/components/Buttons/ButtonLink"
2318
import OriginalCard, {
@@ -26,6 +21,7 @@ import OriginalCard, {
2621
import DocLink from "@/components/DocLink"
2722
import FeedbackCard from "@/components/FeedbackCard"
2823
import { HubHero } from "@/components/Hero"
24+
import type { HubHeroProps } from "@/components/Hero/HubHero"
2925
import { Image, type ImageProps } from "@/components/Image"
3026
import LeftNavBar from "@/components/LeftNavBar"
3127
import InlineLink from "@/components/Link"
@@ -184,7 +180,7 @@ const LearnPage = () => {
184180
url: "#" + id,
185181
}))
186182

187-
const heroContent: CommonHeroProps = {
183+
const heroContent: HubHeroProps = {
188184
title: t("common:learn-hub"),
189185
header: t("hero-header"),
190186
description: t("hero-subtitle"),

0 commit comments

Comments
 (0)