aboutsummaryrefslogtreecommitdiff
path: root/components/button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/button.tsx')
-rw-r--r--components/button.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/button.tsx b/components/button.tsx
index 452d85f..23201aa 100644
--- a/components/button.tsx
+++ b/components/button.tsx
@@ -3,7 +3,7 @@ export default function Button(props: {
href?: string;
onclick?: () => void;
}) {
- return props.href ?
- <a href={props.href} className="button">{props.text}</a> :
- <button onClick={props.onclick} className="button">{props.text}</button>
+ return props.href
+ ? <a href={props.href} className='button'>{props.text}</a>
+ : <button onClick={props.onclick} className='button'>{props.text}</button>;
}