mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Change name from SafeReactNode to StrictReactNode
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
e88de58b5d
commit
d8823085a8
75 files changed
+219
-210
No files matched your search
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import type { KubeObject } from "@k8slens/kube-object";
|
||||
import type { SafeReactNode } from "@k8slens/utilities";
|
||||
import type { StrictReactNode } from "@k8slens/utilities";
|
||||
import type { TableSortCallback, SearchFilter, TableCellProps } from "./list-layout-column";
|
||||
|
||||
export interface BaseKubeObjectListLayoutColumn<K extends KubeObject> {
|
||||
@@ -13,7 +13,7 @@ export interface BaseKubeObjectListLayoutColumn<K extends KubeObject> {
|
||||
sortingCallBack?: TableSortCallback<K>;
|
||||
searchFilter?: SearchFilter<K>;
|
||||
header: TableCellProps | undefined | null;
|
||||
content: (item: K) => SafeReactNode | TableCellProps;
|
||||
content: (item: K) => StrictReactNode | TableCellProps;
|
||||
}
|
||||
|
||||
export interface GeneralKubeObjectListLayoutColumn extends BaseKubeObjectListLayoutColumn<KubeObject> {
|
||||
|
||||
@@ -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 { StrictReactNode, SingleOrMany } from "@k8slens/utilities";
|
||||
|
||||
export interface ItemObject {
|
||||
getId: () => string;
|
||||
@@ -36,7 +36,7 @@ export interface TableCellProps extends React.DOMAttributes<HTMLDivElement> {
|
||||
/**
|
||||
* The actual value of the cell
|
||||
*/
|
||||
title?: SafeReactNode;
|
||||
title?: StrictReactNode;
|
||||
|
||||
/**
|
||||
* content inside could be scrolled
|
||||
|
||||
Reference in new issue
Block a user