diff --git a/components/LongButton.tsx b/components/LongButton.tsx index 216f0af..67029bb 100644 --- a/components/LongButton.tsx +++ b/components/LongButton.tsx @@ -1,17 +1,17 @@ /* eslint-disable jsx-a11y/no-static-element-interactions */ import Link from 'next/link' -const LongButton = ({ children, href, onClick }:LongButtonProps):JSX.Element => { +const LongButton = ({ children, href, onClick, center=false }:LongButtonProps):JSX.Element => { if(href) return -
+
{children}
- if(onClick) return
+ if(onClick) return
{children}
- return
+ return
{children}
@@ -24,5 +24,6 @@ export default LongButton interface LongButtonProps { onClick?: (event: React.KeyboardEvent|React.MouseEvent) => void children: JSX.Element | JSX.Element[] - href?: string + href?: string + center?: boolean } \ No newline at end of file