mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce some naming conventions (#4813)
This commit is contained in:
1 parent
dc6615f98f
commit
0b32775d40
197 files changed
+630
-634
No files matched your search
@@ -9,11 +9,11 @@ import { useFlexLayout, useSortBy, useTable, UseTableOptions } from "react-table
|
||||
import { Icon } from "../icon";
|
||||
import { cssNames } from "../../utils";
|
||||
|
||||
interface Props extends UseTableOptions<any> {
|
||||
export interface ReactTableProps extends UseTableOptions<any> {
|
||||
headless?: boolean;
|
||||
}
|
||||
|
||||
export function ReactTable({ columns, data, headless }: Props) {
|
||||
export function ReactTable({ columns, data, headless }: ReactTableProps) {
|
||||
const defaultColumn = useMemo(
|
||||
() => ({
|
||||
minWidth: 20,
|
||||
|
||||
@@ -21,7 +21,10 @@ import tableModelInjectable from "./table-model/table-model.injectable";
|
||||
|
||||
export type TableSortBy = string;
|
||||
export type TableOrderBy = "asc" | "desc" | string;
|
||||
export type TableSortParams = { sortBy: TableSortBy; orderBy: TableOrderBy };
|
||||
export interface TableSortParams {
|
||||
sortBy: TableSortBy;
|
||||
orderBy: TableOrderBy;
|
||||
}
|
||||
export type TableSortCallback<Item> = (data: Item) => string | number | (string | number)[];
|
||||
export type TableSortCallbacks<Item> = Record<string, TableSortCallback<Item>>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user