Skip to content

Commit 96bfaa9

Browse files
committed
chore: update interfaces imports
1 parent e601a0c commit 96bfaa9

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

src/components/TitleCardList.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,12 @@ import {
1111
} from "@chakra-ui/react"
1212

1313
import { TranslationKey } from "@/lib/types"
14+
import { ITitleCardItem } from "@/lib/interfaces"
1415

1516
import { Image } from "@/components/Image"
1617
import { BaseLink } from "@/components/Link"
1718
import Translation from "@/components/Translation"
1819

19-
export interface ITitleCardItem {
20-
title: string
21-
description: string
22-
caption?: string
23-
link?: string
24-
image?: string
25-
alt?: string
26-
id?: number
27-
}
28-
2920
export type TitleCardListProps = {
3021
content: Array<ITitleCardItem>
3122
className?: string

src/pages/index.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
} from "@chakra-ui/react"
2222

2323
import { AllMetricData, BasePageProps, ChildOnlyProp, Lang } from "@/lib/types"
24-
import type { CommunityEventsReturnType } from "@/lib/interfaces"
24+
import type { CodeExample, CommunityEventsReturnType } from "@/lib/interfaces"
2525

2626
import ActionCard from "@/components/ActionCard"
2727
import ButtonLink from "@/components/Buttons/ButtonLink"
@@ -33,7 +33,7 @@ import { Image } from "@/components/Image"
3333
import MainArticle from "@/components/MainArticle"
3434
import PageMetadata from "@/components/PageMetadata"
3535
import StatsBoxGrid from "@/components/StatsBoxGrid"
36-
import TitleCardList, { ITitleCardItem } from "@/components/TitleCardList"
36+
import TitleCardList from "@/components/TitleCardList"
3737
import Translation from "@/components/Translation"
3838

3939
import { existsNamespace } from "@/lib/utils/existsNamespace"
@@ -308,12 +308,6 @@ const HomePage = ({
308308
},
309309
]
310310

311-
// todo: move to interfaces
312-
interface CodeExample extends ITitleCardItem {
313-
codeLanguage: string
314-
code: string
315-
}
316-
317311
const codeExamples: Array<CodeExample> = [
318312
{
319313
title: t("page-index:page-index-developers-code-example-title-0"),

0 commit comments

Comments
 (0)