Skip to content

Commit

Permalink
Fix props type for Heading
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Dec 12, 2023
1 parent d9e7161 commit 9cf53e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dapp/src/components/shared/Typography/index.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import React from "react"
import { Heading, Text, TextProps } from "@chakra-ui/react"
import { Heading, HeadingProps, Text, TextProps } from "@chakra-ui/react"

export function H1(props: TextProps) {
export function H1(props: HeadingProps) {
return <Heading as="h1" size={{ base: "6xl", md: "7xl" }} {...props} />
}

export function H2(props: TextProps) {
export function H2(props: HeadingProps) {
return <Heading as="h2" size={{ base: "5xl", md: "6xl" }} {...props} />
}

export function H3(props: TextProps) {
export function H3(props: HeadingProps) {
return <Heading as="h3" size={{ base: "4xl", md: "5xl" }} {...props} />
}

export function H4(props: TextProps) {
export function H4(props: HeadingProps) {
return <Heading as="h4" size={{ base: "3xl", md: "4xl" }} {...props} />
}

export function H5(props: TextProps) {
export function H5(props: HeadingProps) {
return <Heading as="h5" size={{ base: "2xl", md: "3xl" }} {...props} />
}

export function H6(props: TextProps) {
export function H6(props: HeadingProps) {
return <Heading as="h6" size={{ base: "xl", md: "2xl" }} {...props} />
}

Expand Down

0 comments on commit 9cf53e7

Please sign in to comment.