1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Linter fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2023-06-02 11:42:56 +03:00
parent e4c4f54621
commit 0ac0157e24
3 changed files with 7 additions and 6 deletions

View File

@ -304,7 +304,7 @@ class NonInjectedItemListLayoutContent<
const {
store, hasDetailsView, addRemoveButtons = {}, virtual, sortingCallbacks,
detailsItem, className, tableProps = {}, tableId, getItems, activeTheme,
table, addOrRemoveButtons, tableState
table, addOrRemoveButtons, tableState,
} = this.props;
const selectedItemId = detailsItem && detailsItem.getId();
const classNames = cssNames(className, "box", "grow", activeTheme.get().type);

View File

@ -13,7 +13,7 @@ import type {
import type { ItemListLayoutContentProps } from "../item-object-list/content";
export type TableContextRequiredDataFromComponentsLayerAbove<
K extends KubeObject
K extends KubeObject,
> = Pick<
ItemListLayoutContentProps<K, any>,
| "tableId"

View File

@ -12,7 +12,8 @@ import { Checkbox } from "../checkbox";
import type { TableCellProps } from "@k8slens/list-layout";
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import type { TableDataContextValue } from "./table-data-context";
import { CreateTableState, createTableStateInjectionToken } from "@k8slens/table";
import type { CreateTableState } from "@k8slens/table";
import { createTableStateInjectionToken } from "@k8slens/table";
type TableDataColumn<DataItem = any> = object;
@ -59,7 +60,7 @@ export function createLensTableState<K extends KubeObject>({
sortValue(row: any, col: any) {
return sortingCallbacks?.[col.id]?.(row.data) as string;
},
})
}),
);
const checkboxColumn: TableDataColumn<K> = {