fix: Don't crash when hovering hotbar menu index

- Remove all uses of React.ReactNode as it is unsafe, replace them with
  usages of SafeReactNode which doesn't contain the '{}' type

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 f13a145a27
commit 9d51ef2aa6
84 files changed
+246 -208

No files matched your search

@@ -1,10 +1,11 @@
import type { SafeReactNode, SingleOrMany } 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: React.ReactNode;
children: SingleOrMany<SafeReactNode>;
}
interface Dependencies {
@@ -1,8 +1,9 @@
import type { SafeReactNode, SingleOrMany } from "@k8slens/utilities";
import React from "react";
export interface KeyboardShortcutScopeProps {
id: string;
children: React.ReactNode;
children: SingleOrMany<SafeReactNode>;
}
export const KeyboardShortcutScope = ({ id, children }: KeyboardShortcutScopeProps) => (