diff --git a/src/components/ContactButton.tsx b/src/components/ContactButton.tsx index 470cd2f..e1a139f 100644 --- a/src/components/ContactButton.tsx +++ b/src/components/ContactButton.tsx @@ -1,32 +1,30 @@ -import React from 'react'; +import { type ComponentProps } from 'react'; import { cn } from '../utils/cn'; -interface ContactButtonProps extends React.ButtonHTMLAttributes { +interface ContactButtonProps extends ComponentProps<'button'> { className?: string; } -export const ContactButton = React.forwardRef( - ({ className, ...props }, ref) => { - return ( - - ); - } -); +export const ContactButton = ({ className, ref, ...props }: ContactButtonProps) => { + return ( + + ); +}; ContactButton.displayName = 'ContactButton'; diff --git a/src/components/LiveProjectButton.tsx b/src/components/LiveProjectButton.tsx index 0e9a72e..db5d9eb 100644 --- a/src/components/LiveProjectButton.tsx +++ b/src/components/LiveProjectButton.tsx @@ -1,28 +1,26 @@ -import React from 'react'; +import { type ComponentProps } from 'react'; import { cn } from '../utils/cn'; -interface LiveProjectButtonProps extends React.ButtonHTMLAttributes { +interface LiveProjectButtonProps extends ComponentProps<'button'> { className?: string; } -export const LiveProjectButton = React.forwardRef( - ({ className, ...props }, ref) => { - return ( - - ); - } -); +export const LiveProjectButton = ({ className, ref, ...props }: LiveProjectButtonProps) => { + return ( + + ); +}; LiveProjectButton.displayName = 'LiveProjectButton';