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
@@ -11,13 +11,13 @@ import type { UseTableOptions } from "react-table";
|
||||
import { ReactTable } from "../table/react-table";
|
||||
export type SearchFilter = (item: object) => string | number;
|
||||
|
||||
interface Props extends UseTableOptions<any> {
|
||||
export interface ListProps extends UseTableOptions<any> {
|
||||
items: object[];
|
||||
filters: SearchFilter[];
|
||||
title?: React.ReactNode;
|
||||
}
|
||||
|
||||
export function List({ columns, data, title, items, filters }: Props) {
|
||||
export function List({ columns, data, title, items, filters }: ListProps) {
|
||||
const [search, setSearch] = useState<string>("");
|
||||
const query = search.toLowerCase();
|
||||
|
||||
|
||||
Reference in new issue
Block a user