Skip to content

Commit 38acf90

Browse files
committed
refactor: MainArticle to tailwind
1 parent c117744 commit 38acf90

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/components/MainArticle.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
import { Box, type BoxProps } from "@chakra-ui/react"
1+
import { cn } from "@/lib/utils/cn"
22

33
import { MAIN_CONTENT_ID } from "@/lib/constants"
44

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+
/>
714
)
815

916
export default MainArticle

0 commit comments

Comments
 (0)