From 0ac0157e24b7d291f6ae9ee0129ea9d2692aa2a9 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Fri, 2 Jun 2023 11:42:56 +0300 Subject: [PATCH] Linter fixes Signed-off-by: Alex Andreev --- .../src/renderer/components/item-object-list/content.tsx | 2 +- .../src/renderer/components/table/table-data-context.ts | 4 ++-- .../renderer/components/table/table-state.injectable.tsx | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/core/src/renderer/components/item-object-list/content.tsx b/packages/core/src/renderer/components/item-object-list/content.tsx index 29b87bda22..a60dce9b7e 100644 --- a/packages/core/src/renderer/components/item-object-list/content.tsx +++ b/packages/core/src/renderer/components/item-object-list/content.tsx @@ -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); diff --git a/packages/core/src/renderer/components/table/table-data-context.ts b/packages/core/src/renderer/components/table/table-data-context.ts index e84e536676..162ad6f668 100644 --- a/packages/core/src/renderer/components/table/table-data-context.ts +++ b/packages/core/src/renderer/components/table/table-data-context.ts @@ -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, | "tableId" @@ -40,4 +40,4 @@ export interface TableDataContextValue export const TableDataContext = React.createContext< TableDataContextValue ->({} as any); \ No newline at end of file +>({} as any); diff --git a/packages/core/src/renderer/components/table/table-state.injectable.tsx b/packages/core/src/renderer/components/table/table-state.injectable.tsx index b6eb0a0d2f..e36f96d023 100644 --- a/packages/core/src/renderer/components/table/table-state.injectable.tsx +++ b/packages/core/src/renderer/components/table/table-state.injectable.tsx @@ -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 = object; @@ -59,7 +60,7 @@ export function createLensTableState({ sortValue(row: any, col: any) { return sortingCallbacks?.[col.id]?.(row.data) as string; }, - }) + }), ); const checkboxColumn: TableDataColumn = { @@ -174,4 +175,4 @@ export const tableStateInjectable = getInjectable({ return createLensTableState(context, createState); }, lifecycle: lifecycleEnum.transient, -}); \ No newline at end of file +});