Skip to content

Commit

Permalink
feat: add column ordering in torrent widget (#1952)
Browse files Browse the repository at this point in the history
  • Loading branch information
hillaliy committed Mar 13, 2024
1 parent 4fa5182 commit 1cc4ae5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/torrent/TorrentTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { IconFileDownload } from '@tabler/icons-react';
import dayjs from 'dayjs';
import duration from 'dayjs/plugin/duration';
import relativeTime from 'dayjs/plugin/relativeTime';
import { type MRT_ColumnDef, MRT_TableContainer, useMantineReactTable } from 'mantine-react-table';
import { MRT_TableContainer, useMantineReactTable, type MRT_ColumnDef } from 'mantine-react-table';
import { useTranslation } from 'next-i18next';
import { useMemo } from 'react';
import { MIN_WIDTH_MOBILE } from '~/constants/constants';
Expand Down Expand Up @@ -218,6 +218,7 @@ function TorrentTile({ widget }: TorrentTileProps) {
enableRowVirtualization: true,
rowVirtualizerProps: { overscan: 20 },
mantineTableContainerProps: { sx: { scrollbarWidth: 'none' } },
enableColumnOrdering: true,
enableSorting: true,
initialState: {
showColumnFilters: false,
Expand Down

0 comments on commit 1cc4ae5

Please sign in to comment.