From 45872e66ebcf029d08c792dc2e1fa944ca2b98ec Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Thu, 19 Sep 2024 10:23:46 +0930 Subject: [PATCH] fix: set specific widths for change table columns --- .../components/settings/git/ChangeTable.jsx | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/settings/git/ChangeTable.jsx b/frontend/src/components/settings/git/ChangeTable.jsx index 8a6efd5..76fa996 100644 --- a/frontend/src/components/settings/git/ChangeTable.jsx +++ b/frontend/src/components/settings/git/ChangeTable.jsx @@ -15,7 +15,6 @@ const ChangeTable = ({ }) => { const sortedChanges = changesArray => { if (!sortConfig.key) return changesArray; - return [...changesArray].sort((a, b) => { if (a[sortConfig.key] < b[sortConfig.key]) { return sortConfig.direction === 'ascending' ? -1 : 1; @@ -27,11 +26,11 @@ const ChangeTable = ({ }); }; - const SortableHeader = ({children, sortKey}) => { + const SortableHeader = ({children, sortKey, className}) => { const isSorted = sortConfig.key === sortKey; return ( onRequestSort(sortKey)}>
{children} @@ -48,7 +47,7 @@ const ChangeTable = ({ return (
-

+

{icon} {isIncoming @@ -63,15 +62,19 @@ const ChangeTable = ({ - + Status - Type - Name - -
+ + Type + + + Name + + Actions + Select