diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-12 10:25:43 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-12 10:25:43 +0200 |
commit | 822d1ee1be99b7d96740585ddd1174b94916335d (patch) | |
tree | 7005e359d7f62dede5f3eabe02becec37d8bfe57 /components/button.tsx | |
parent | 7f7e14bd9dce02e6ced663fd527a5750cd13f920 (diff) |
dprint formatter :tada:
Diffstat (limited to 'components/button.tsx')
-rw-r--r-- | components/button.tsx | 6 |
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>; } |