mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
migrate ListsTable.tsx
This commit is contained in:
parent
e7b09e4d51
commit
41e27ee3a6
1 changed files with 8 additions and 7 deletions
|
|
@ -1,11 +1,6 @@
|
|||
import "./listsTable.css";
|
||||
|
||||
import { Table, Tag } from "antd";
|
||||
import {
|
||||
PaginationConfig,
|
||||
SorterResult,
|
||||
TableCurrentDataSource
|
||||
} from "antd/lib/table";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { RouteComponentProps } from "react-router";
|
||||
|
||||
|
|
@ -28,6 +23,12 @@ import { SyntaxTag } from "../SyntaxTag";
|
|||
import { TagCloud } from "../tagCloud";
|
||||
import { arraySorter } from "./arraySorter";
|
||||
import styles from "./ListsTable.module.css";
|
||||
import { PaginationConfig } from "antd/lib/pagination";
|
||||
import {
|
||||
SorterResult,
|
||||
TableCurrentDataSource,
|
||||
Key
|
||||
} from "antd/lib/table/interface";
|
||||
|
||||
interface Props {
|
||||
lists: List[];
|
||||
|
|
@ -78,8 +79,8 @@ export const ListsTable = (props: RouteComponentProps & Props) => {
|
|||
}}
|
||||
onChange={(
|
||||
_pagination: PaginationConfig,
|
||||
_filters: Partial<Record<keyof List, string[]>>,
|
||||
_sorter: SorterResult<List>,
|
||||
_filters: Record<string, Key[] | null>,
|
||||
_sorter: SorterResult<List> | SorterResult<List>[],
|
||||
extra: TableCurrentDataSource<List>
|
||||
) => setVisibleLists(extra.currentDataSource)}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue