chore: Remove unnecessary use of SingleOrMany<SafeReactNode>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-05-15 11:56:30 -04:00
1 parent adb288e48a
commit e88de58b5d
23 files changed
+44 -44

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@
import "./button.scss";
import type { ButtonHTMLAttributes } from "react";
import React from "react";
import { cssNames, SafeReactNode, SingleOrMany } from "@k8slens/utilities";
import { cssNames, SafeReactNode } from "@k8slens/utilities";
import { withTooltip } from "@k8slens/tooltip";
export interface ButtonProps extends ButtonHTMLAttributes<any> {
@@ -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?: SingleOrMany<SafeReactNode>;
children?: SafeReactNode;
}
export const Button = withTooltip((props: ButtonProps) => {