mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
1 parent
11ab79b568
commit
65f04b6e38
5 files changed
+38
-76
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user