mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Change name from SafeReactNode to StrictReactNode
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
e88de58b5d
commit
d8823085a8
75 files changed
+219
-210
No files matched your search
@@ -6,11 +6,11 @@
|
||||
import "./button.scss";
|
||||
import type { ButtonHTMLAttributes } from "react";
|
||||
import React from "react";
|
||||
import { cssNames, SafeReactNode } from "@k8slens/utilities";
|
||||
import { cssNames, StrictReactNode } from "@k8slens/utilities";
|
||||
import { withTooltip } from "@k8slens/tooltip";
|
||||
|
||||
export interface ButtonProps extends ButtonHTMLAttributes<any> {
|
||||
label?: SafeReactNode;
|
||||
label?: StrictReactNode;
|
||||
waiting?: boolean;
|
||||
primary?: boolean;
|
||||
accent?: boolean;
|
||||
@@ -23,7 +23,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<any> {
|
||||
round?: boolean;
|
||||
href?: string; // render as hyperlink
|
||||
target?: "_blank"; // in case of using @href
|
||||
children?: SafeReactNode;
|
||||
children?: StrictReactNode;
|
||||
}
|
||||
|
||||
export const Button = withTooltip((props: ButtonProps) => {
|
||||
|
||||
Reference in new issue
Block a user