diff --git a/components/Button.tsx b/components/Button.tsx index 30de42e..419402f 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -1,13 +1,13 @@ import Link from 'next/link' -const Button = ({ type='button', className='', children, href, onClick }: ButtonProps):JSX.Element => { +const Button = ({ type='button', className, children, href, onClick }: ButtonProps):JSX.Element => { return href ? - + { children } - : onClick ? : : } @@ -15,7 +15,7 @@ const Button = ({ type='button', className='', children, href, onClick }: Button interface ButtonProps { type?: 'button' | 'submit' | 'reset' className?: string - children: JSX.Element | JSX.Element[] | string + children: JSX.Element | string href?: string onClick?: () => void }