mirror of
https://github.com/apotdevin/thunderhub.git
synced 2024-11-19 01:40:03 +01:00
parent
7edf7e40f4
commit
7b41848be8
@ -22,6 +22,7 @@ interface TableProps {
|
||||
filterPlaceholder?: string;
|
||||
withGlobalSort?: boolean; // enables the global search box
|
||||
withSorting?: boolean; // enables columns to be sorted
|
||||
initSorting?: SortingState;
|
||||
withBorder?: boolean;
|
||||
alignCenter?: boolean;
|
||||
fontSize?: string;
|
||||
@ -94,9 +95,10 @@ export default function Table({
|
||||
toggleConfiguration,
|
||||
withGlobalSort = false,
|
||||
withSorting = false,
|
||||
initSorting,
|
||||
}: TableProps) {
|
||||
const [globalFilter, setGlobalFilter] = useState('');
|
||||
const [sorting, setSorting] = useState<SortingState>([]);
|
||||
const [sorting, setSorting] = useState<SortingState>(initSorting || []);
|
||||
const [isOpen, setIsOpen] = useState<boolean>(false);
|
||||
|
||||
const [columnVisibility, setColumnVisibility] = useState<VisibilityState>(
|
||||
|
@ -580,6 +580,12 @@ export const ChannelTable = () => {
|
||||
data={tableData}
|
||||
withGlobalSort={true}
|
||||
withSorting={true}
|
||||
initSorting={[
|
||||
{
|
||||
id: 'balanceBars',
|
||||
desc: false,
|
||||
},
|
||||
]}
|
||||
toggleConfiguration={handleToggle}
|
||||
defaultHiddenColumns={hiddenColumnState}
|
||||
filterPlaceholder="channels"
|
||||
|
Loading…
Reference in New Issue
Block a user