chore: Fix code style

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne SavolainenandMikko Aspiala authored and Iku-turso committed 2023-05-03 09:31:24 +03:00
1 parent 11ab79b568
commit 65f04b6e38
5 files changed
+38 -76

No files matched your search

+3 -20
View File
@@ -26,21 +26,8 @@ export interface ButtonProps extends ButtonHTMLAttributes<any> {
}
export const Button = withTooltip((props: ButtonProps) => {
const {
waiting,
label,
primary,
accent,
plain,
hidden,
active,
big,
round,
outlined,
light,
children,
...btnProps
} = props;
const { waiting, label, primary, accent, plain, hidden, active, big, round, outlined, light, children, ...btnProps } =
props;
if (hidden) {
return null;
@@ -70,11 +57,7 @@ export const Button = withTooltip((props: ButtonProps) => {
// render as button
return (
<button
type="button"
{...btnProps}
data-waiting={typeof waiting === "boolean" ? String(waiting) : undefined}
>
<button type="button" {...btnProps} data-waiting={typeof waiting === "boolean" ? String(waiting) : undefined}>
{label}
{children}
</button>