mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Remove unnecessary use of SingleOrMany<SafeReactNode>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
adb288e48a
commit
e88de58b5d
23 files changed
+44
-44
No files matched your search
@@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
import type { SafeReactNode, SingleOrMany } from "@k8slens/utilities";
|
||||
import type { SafeReactNode } from "@k8slens/utilities";
|
||||
import { render, RenderResult } from "@testing-library/react";
|
||||
import userEvent from "@testing-library/user-event";
|
||||
import React from "react";
|
||||
@@ -12,7 +12,7 @@ import { withTooltip } from "./withTooltip";
|
||||
type MyComponentProps = {
|
||||
text: string;
|
||||
id?: string;
|
||||
children?: SingleOrMany<SafeReactNode>;
|
||||
children?: SafeReactNode;
|
||||
"data-testid"?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ export interface TooltipDecoratorProps {
|
||||
*/
|
||||
tooltipOverrideDisabled?: boolean;
|
||||
id?: string;
|
||||
children?: SingleOrMany<SafeReactNode>;
|
||||
children?: SafeReactNode;
|
||||
}
|
||||
|
||||
export function withTooltip<TargetProps>(
|
||||
|
||||
Reference in new issue
Block a user