Skip to content

Commit e5b4323

Browse files
refactor(pages/index): move ChildOnlyProp to types.ts
1 parent 714c804 commit e5b4323

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/pages/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
} from "@chakra-ui/react"
1919
import { FaGithub } from "react-icons/fa"
2020

21-
import type { Context } from "../types"
21+
import type { ChildOnlyProp, Context } from "../types"
2222

2323
import ActionCard from "../components/ActionCard"
2424
import ButtonLink from "../components/ButtonLink"
@@ -39,8 +39,6 @@ import CreateWalletContent from "!!raw-loader!../data/CreateWallet.js"
3939
import SimpleDomainRegistryContent from "!!raw-loader!../data/SimpleDomainRegistry.sol"
4040
import { useConsoleEasterEgg } from "../hooks/useConsoleEasterEgg"
4141

42-
type ChildOnlyProp = { children: ReactNode }
43-
4442
const SectionHeading = (props: HeadingProps) => (
4543
<Heading
4644
lineHeight={1.4}

src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import { ReactNode } from "react"
12
import { IGatsbyImageData } from "gatsby-plugin-image"
23

34
import type { Messages } from "./interfaces"
45
import type { Lang } from "./utils/languages"
56
import { TranslationKey } from "./utils/translations"
67

8+
export type ChildOnlyProp = { children: ReactNode }
9+
710
export type Intl = {
811
language: Lang
912
languages: Array<Lang>

0 commit comments

Comments
 (0)