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
@@ -1,11 +1,11 @@
|
||||
import type { SafeReactNode, SingleOrMany } from "@k8slens/utilities";
|
||||
import type { SafeReactNode } from "@k8slens/utilities";
|
||||
import { withInjectables } from "@ogre-tools/injectable-react";
|
||||
import React, { useEffect } from "react";
|
||||
|
||||
import invokeShortcutInjectable, { InvokeShortcut } from "./invoke-shortcut.injectable";
|
||||
|
||||
export interface KeyboardShortcutListenerProps {
|
||||
children: SingleOrMany<SafeReactNode>;
|
||||
children: SafeReactNode;
|
||||
}
|
||||
|
||||
interface Dependencies {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { SafeReactNode, SingleOrMany } from "@k8slens/utilities";
|
||||
import type { SafeReactNode } from "@k8slens/utilities";
|
||||
import React from "react";
|
||||
|
||||
export interface KeyboardShortcutScopeProps {
|
||||
id: string;
|
||||
children: SingleOrMany<SafeReactNode>;
|
||||
children: SafeReactNode;
|
||||
}
|
||||
|
||||
export const KeyboardShortcutScope = ({ id, children }: KeyboardShortcutScopeProps) => (
|
||||
|
||||
Reference in new issue
Block a user