File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/components/MdComponents Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
- import { type HTMLAttributes } from "react"
2
- import { Box , type BoxProps } from "@chakra-ui/react"
1
+ import { type ComponentProps , type HTMLAttributes } from "react"
3
2
4
3
import type { ChildOnlyProp } from "@/lib/types"
5
4
@@ -111,7 +110,6 @@ export const HR = () => (
111
110
// All base html element components
112
111
export const htmlElements = {
113
112
a : TooltipLink ,
114
- div : Box ,
115
113
h1 : Heading1 ,
116
114
h2 : Heading2 ,
117
115
h3 : Heading3 ,
@@ -147,7 +145,7 @@ export const Title = (props: ChildOnlyProp) => (
147
145
< Heading1 className = "mt-4" { ...props } />
148
146
)
149
147
150
- export const ContentContainer = ( props : Pick < BoxProps , "id" | "children "> ) => {
148
+ export const ContentContainer = ( props : ComponentProps < "article "> ) => {
151
149
return (
152
150
< MainArticle className = "relative flex-[1_1_992px] px-8 pb-8" { ...props } />
153
151
)
You can’t perform that action at this time.
0 commit comments