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

@@ -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) => (