From f98a22b061412d66aecf971606b8078370b2ab46 Mon Sep 17 00:00:00 2001 From: dekzter Date: Wed, 12 Mar 2025 15:21:16 -0400 Subject: [PATCH] consistent icons across tables --- frontend/src/components/tables/EPGsTable.jsx | 11 ++++++----- frontend/src/components/tables/M3UsTable.jsx | 11 ++++++----- .../components/tables/StreamProfilesTable.jsx | 16 +++++++++------- .../src/components/tables/UserAgentsTable.jsx | 17 +++++++++-------- 4 files changed, 30 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/tables/EPGsTable.jsx b/frontend/src/components/tables/EPGsTable.jsx index 50fffbc9..8f5dafe7 100644 --- a/frontend/src/components/tables/EPGsTable.jsx +++ b/frontend/src/components/tables/EPGsTable.jsx @@ -22,6 +22,7 @@ import { } from '@mantine/core'; import { notifications } from '@mantine/notifications'; import { IconSquarePlus } from '@tabler/icons-react'; +import { RefreshCcw, SquareMinus, SquarePen } from 'lucide-react'; const EPGsTable = () => { const [epg, setEPG] = useState(null); @@ -124,23 +125,23 @@ const EPGsTable = () => { color="yellow.5" // Red color for delete actions onClick={() => editEPG(row.original)} > - {/* Small icon size */} + {/* Small icon size */} deleteEPG(row.original.id)} > - {/* Small icon size */} + {/* Small icon size */} refreshEPG(row.original.id)} > - {/* Small icon size */} + {/* Small icon size */} ), diff --git a/frontend/src/components/tables/M3UsTable.jsx b/frontend/src/components/tables/M3UsTable.jsx index e538bb2e..4059aa18 100644 --- a/frontend/src/components/tables/M3UsTable.jsx +++ b/frontend/src/components/tables/M3UsTable.jsx @@ -8,7 +8,6 @@ import { SwapVert as SwapVertIcon, Check as CheckIcon, Close as CloseIcon, - Refresh as RefreshIcon, } from '@mui/icons-material'; import { LiveTv as LiveTvIcon, @@ -45,6 +44,8 @@ import { ArrowDown, ArrowUpDown, TvMinimalPlay, + SquarePen, + RefreshCcw, } from 'lucide-react'; import { IconArrowDown, @@ -193,15 +194,15 @@ const Example = () => { editPlaylist(row.original); }} > - + deletePlaylist(row.original.id)} > - + { color="blue.5" onClick={() => refreshPlaylist(row.original.id)} > - + ), diff --git a/frontend/src/components/tables/StreamProfilesTable.jsx b/frontend/src/components/tables/StreamProfilesTable.jsx index 4776ce8f..de42980d 100644 --- a/frontend/src/components/tables/StreamProfilesTable.jsx +++ b/frontend/src/components/tables/StreamProfilesTable.jsx @@ -24,6 +24,7 @@ import { useMantineTheme, } from '@mantine/core'; import { IconSquarePlus } from '@tabler/icons-react'; +import { SquareMinus, SquarePen } from 'lucide-react'; const StreamProfiles = () => { const [profile, setProfile] = useState(null); @@ -140,14 +141,14 @@ const StreamProfiles = () => { data: streamProfiles, enablePagination: false, enableRowVirtualization: true, - enableRowSelection: true, + // enableRowSelection: true, renderTopToolbar: false, - onRowSelectionChange: setRowSelection, + // onRowSelectionChange: setRowSelection, onSortingChange: setSorting, state: { isLoading, sorting, - rowSelection, + // rowSelection, }, rowVirtualizerInstanceRef, //optional rowVirtualizerOptions: { overscan: 5 }, //optionally customize the row virtualizer @@ -160,17 +161,18 @@ const StreamProfiles = () => { editStreamProfile(row.original)} > - {/* Small icon size */} + {/* Small icon size */} deleteStreamProfile(row.original.id)} > - {/* Small icon size */} + {/* Small icon size */} ), diff --git a/frontend/src/components/tables/UserAgentsTable.jsx b/frontend/src/components/tables/UserAgentsTable.jsx index b1107e83..82c4f48f 100644 --- a/frontend/src/components/tables/UserAgentsTable.jsx +++ b/frontend/src/components/tables/UserAgentsTable.jsx @@ -32,6 +32,7 @@ import { IconSortAscendingNumbers, IconSquarePlus, } from '@tabler/icons-react'; +import { SquareMinus, SquarePen } from 'lucide-react'; const UserAgentsTable = () => { const [userAgent, setUserAgent] = useState(null); @@ -191,14 +192,14 @@ const UserAgentsTable = () => { data: userAgents, enablePagination: false, enableRowVirtualization: true, - enableRowSelection: true, + // enableRowSelection: true, renderTopToolbar: false, - onRowSelectionChange: setRowSelection, + // onRowSelectionChange: setRowSelection, onSortingChange: setSorting, state: { isLoading, sorting, - rowSelection, + // rowSelection, }, rowVirtualizerInstanceRef, //optional rowVirtualizerOptions: { overscan: 5 }, //optionally customize the row virtualizer @@ -210,21 +211,21 @@ const UserAgentsTable = () => { <> { editUserAgent(row.original); }} > - {/* Small icon size */} + {/* Small icon size */} deleteUserAgent(row.original.id)} > - {/* Small icon size */} + {/* Small icon size */} ),