From 1cc4ae5c03b2829f9eb0fa032330a460e2de6587 Mon Sep 17 00:00:00 2001 From: Yossi Hillali Date: Wed, 13 Mar 2024 21:07:51 +0200 Subject: [PATCH] feat: add column ordering in torrent widget (#1952) --- src/widgets/torrent/TorrentTile.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/torrent/TorrentTile.tsx b/src/widgets/torrent/TorrentTile.tsx index 5ba2e2167fa..19921f6cee8 100644 --- a/src/widgets/torrent/TorrentTile.tsx +++ b/src/widgets/torrent/TorrentTile.tsx @@ -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'; @@ -218,6 +218,7 @@ function TorrentTile({ widget }: TorrentTileProps) { enableRowVirtualization: true, rowVirtualizerProps: { overscan: 20 }, mantineTableContainerProps: { sx: { scrollbarWidth: 'none' } }, + enableColumnOrdering: true, enableSorting: true, initialState: { showColumnFilters: false,