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"
32
43import type { ChildOnlyProp } from "@/lib/types"
54
@@ -111,7 +110,6 @@ export const HR = () => (
111110// All base html element components
112111export 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 )
You can’t perform that action at this time.
0 commit comments