Skip to content

Commit

Permalink
refactor: use ComponentProps
Browse files Browse the repository at this point in the history
  • Loading branch information
junkisai committed Oct 15, 2024
1 parent 35c1590 commit dafbf6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FC, HTMLAttributes, PropsWithChildren } from 'react'
import type { ComponentProps, FC, PropsWithChildren } from 'react'
import styles from './Code.module.css'

type Props = PropsWithChildren & HTMLAttributes<HTMLElement>
type Props = PropsWithChildren & ComponentProps<'code'>

export const Code: FC<Props> = ({ children, ...props }) => {
return (
Expand Down

0 comments on commit dafbf6c

Please sign in to comment.