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:
parent
e4c4f54621
commit
0ac0157e24
@ -304,7 +304,7 @@ class NonInjectedItemListLayoutContent<
|
|||||||
const {
|
const {
|
||||||
store, hasDetailsView, addRemoveButtons = {}, virtual, sortingCallbacks,
|
store, hasDetailsView, addRemoveButtons = {}, virtual, sortingCallbacks,
|
||||||
detailsItem, className, tableProps = {}, tableId, getItems, activeTheme,
|
detailsItem, className, tableProps = {}, tableId, getItems, activeTheme,
|
||||||
table, addOrRemoveButtons, tableState
|
table, addOrRemoveButtons, tableState,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const selectedItemId = detailsItem && detailsItem.getId();
|
const selectedItemId = detailsItem && detailsItem.getId();
|
||||||
const classNames = cssNames(className, "box", "grow", activeTheme.get().type);
|
const classNames = cssNames(className, "box", "grow", activeTheme.get().type);
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import type {
|
|||||||
import type { ItemListLayoutContentProps } from "../item-object-list/content";
|
import type { ItemListLayoutContentProps } from "../item-object-list/content";
|
||||||
|
|
||||||
export type TableContextRequiredDataFromComponentsLayerAbove<
|
export type TableContextRequiredDataFromComponentsLayerAbove<
|
||||||
K extends KubeObject
|
K extends KubeObject,
|
||||||
> = Pick<
|
> = Pick<
|
||||||
ItemListLayoutContentProps<K, any>,
|
ItemListLayoutContentProps<K, any>,
|
||||||
| "tableId"
|
| "tableId"
|
||||||
@ -40,4 +40,4 @@ export interface TableDataContextValue<K extends KubeObject>
|
|||||||
|
|
||||||
export const TableDataContext = React.createContext<
|
export const TableDataContext = React.createContext<
|
||||||
TableDataContextValue<KubeObject>
|
TableDataContextValue<KubeObject>
|
||||||
>({} as any);
|
>({} as any);
|
||||||
|
|||||||
@ -12,7 +12,8 @@ import { Checkbox } from "../checkbox";
|
|||||||
import type { TableCellProps } from "@k8slens/list-layout";
|
import type { TableCellProps } from "@k8slens/list-layout";
|
||||||
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
|
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
|
||||||
import type { TableDataContextValue } from "./table-data-context";
|
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;
|
type TableDataColumn<DataItem = any> = object;
|
||||||
|
|
||||||
@ -59,7 +60,7 @@ export function createLensTableState<K extends KubeObject>({
|
|||||||
sortValue(row: any, col: any) {
|
sortValue(row: any, col: any) {
|
||||||
return sortingCallbacks?.[col.id]?.(row.data) as string;
|
return sortingCallbacks?.[col.id]?.(row.data) as string;
|
||||||
},
|
},
|
||||||
})
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
const checkboxColumn: TableDataColumn<K> = {
|
const checkboxColumn: TableDataColumn<K> = {
|
||||||
@ -174,4 +175,4 @@ export const tableStateInjectable = getInjectable({
|
|||||||
return createLensTableState(context, createState);
|
return createLensTableState(context, createState);
|
||||||
},
|
},
|
||||||
lifecycle: lifecycleEnum.transient,
|
lifecycle: lifecycleEnum.transient,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user