aboutsummaryrefslogtreecommitdiff
path: root/components/button.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-12 10:25:43 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-12 10:25:43 +0200
commit822d1ee1be99b7d96740585ddd1174b94916335d (patch)
tree7005e359d7f62dede5f3eabe02becec37d8bfe57 /components/button.tsx
parent7f7e14bd9dce02e6ced663fd527a5750cd13f920 (diff)
dprint formatter :tada:
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>;
}