Skip to content

Commit 12e5adc

Browse files
committed
migrate mdx hero to tw
1 parent aa5cdb0 commit 12e5adc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/Hero/MdxHero/index.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
import { Heading, Stack } from "@chakra-ui/react"
2-
31
import type { CommonHeroProps } from "@/lib/types"
42

53
import Breadcrumbs from "@/components/Breadcrumbs"
4+
import { Stack } from "@/components/ui/flex"
65

76
export type MdxHeroProps = Pick<CommonHeroProps, "breadcrumbs" | "title">
87

98
const MdxHero = ({ breadcrumbs, title }: MdxHeroProps) => (
10-
<Stack py="8" px="6" spacing="6" w="full">
9+
<Stack className="w-full gap-6 px-6 py-8">
1110
<Breadcrumbs {...breadcrumbs} />
12-
<Heading as="h1" size="2xl">
13-
{title}
14-
</Heading>
11+
<h1>{title}</h1>
1512
</Stack>
1613
)
1714

0 commit comments

Comments
 (0)