File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
- import { Box , type BoxProps } from "@chakra-ui/react "
1
+ import { cn } from "@/lib/utils/cn "
2
2
3
3
import { MAIN_CONTENT_ID } from "@/lib/constants"
4
4
5
- const MainArticle = ( props : BoxProps ) => (
6
- < Box as = "article" id = { MAIN_CONTENT_ID } scrollMarginTop = { 24 } { ...props } />
5
+ const MainArticle = ( {
6
+ className,
7
+ ...props
8
+ } : React . HTMLAttributes < HTMLDivElement > ) => (
9
+ < article
10
+ id = { MAIN_CONTENT_ID }
11
+ className = { cn ( "scroll-mt-24" , className ) }
12
+ { ...props }
13
+ />
7
14
)
8
15
9
16
export default MainArticle
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ const LearningToolsPage = () => {
424
424
"page-developers-learning-tools:page-learning-tools-meta-desc"
425
425
) }
426
426
/>
427
- < MainArticle w = " full">
427
+ < MainArticle className = "w- full">
428
428
< Box w = "full" >
429
429
< Header >
430
430
< H1 >
You can’t perform that action at this time.
0 commit comments