mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add data-warning prop on button for better snapshot testing (#6040)
This commit is contained in:
1 parent
ac6a5f9b83
commit
106c3d246a
6 files changed
+18
-1
No files matched your search
@@ -49,7 +49,11 @@ export const Button = withTooltip((props: ButtonProps) => {
|
||||
|
||||
// render as button
|
||||
return (
|
||||
<button type="button" {...btnProps}>
|
||||
<button
|
||||
type="button"
|
||||
{...btnProps}
|
||||
data-waiting={typeof waiting === "boolean" ? String(waiting) : undefined}
|
||||
>
|
||||
{label}
|
||||
{children}
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user