Enforce some naming conventions (#4813)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2022-03-01 13:06:53 -05:00
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,
+4 -1
View File
@@ -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>>;