From 240e75f0251f4074223be64c99aea463e92ffcf1 Mon Sep 17 00:00:00 2001 From: henrygd Date: Sun, 21 Sep 2025 19:23:34 -0400 Subject: [PATCH] add sorted style to home table header buttons --- .../systems-table/systems-table-columns.tsx | 3 +- .../systems-table/systems-table.tsx | 39 +++++++++---------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/internal/site/src/components/systems-table/systems-table-columns.tsx b/internal/site/src/components/systems-table/systems-table-columns.tsx index 8fc7e586..8515d184 100644 --- a/internal/site/src/components/systems-table/systems-table-columns.tsx +++ b/internal/site/src/components/systems-table/systems-table-columns.tsx @@ -306,10 +306,11 @@ function sortableHeader(context: HeaderContext) { const { column } = context // @ts-expect-error const { Icon, hideSort, name }: { Icon: React.ElementType; name: () => string; hideSort: boolean } = column.columnDef + const isSorted = column.getIsSorted() return (