Skip to content

Commit f08ea92

Browse files
refactor(MdComponents): remove Chakra Box component
1 parent 2e51d18 commit f08ea92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/MdComponents/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { type HTMLAttributes } from "react"
2-
import { Box, type BoxProps } from "@chakra-ui/react"
1+
import { type ComponentProps, type HTMLAttributes } from "react"
32

43
import type { ChildOnlyProp } from "@/lib/types"
54

@@ -111,7 +110,6 @@ export const HR = () => (
111110
// All base html element components
112111
export const htmlElements = {
113112
a: TooltipLink,
114-
div: Box,
115113
h1: Heading1,
116114
h2: Heading2,
117115
h3: Heading3,
@@ -147,7 +145,7 @@ export const Title = (props: ChildOnlyProp) => (
147145
<Heading1 className="mt-4" {...props} />
148146
)
149147

150-
export const ContentContainer = (props: Pick<BoxProps, "id" | "children">) => {
148+
export const ContentContainer = (props: ComponentProps<"article">) => {
151149
return (
152150
<MainArticle className="relative flex-[1_1_992px] px-8 pb-8" {...props} />
153151
)

0 commit comments

Comments
 (0)