From 56816c7584faee93229c255b51330fd07de4114b Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Sat, 25 Apr 2026 15:17:39 -0700 Subject: [PATCH] change column order on sites table --- src/components/SiteResourcesOverview.tsx | 8 ++--- src/components/SitesTable.tsx | 46 ++++++++++++------------ 2 files changed, 25 insertions(+), 29 deletions(-) diff --git a/src/components/SiteResourcesOverview.tsx b/src/components/SiteResourcesOverview.tsx index b774b22b8..9ff6b9686 100644 --- a/src/components/SiteResourcesOverview.tsx +++ b/src/components/SiteResourcesOverview.tsx @@ -431,9 +431,6 @@ export default function SiteResourcesOverview({ ); } - /** Left column = whichever side has a greater total; ties default to public first. */ - const publicOnLeft = publicTotal >= privateTotal; - const publicColumn = (
- {publicOnLeft - ? [publicColumn, privateColumn] - : [privateColumn, publicColumn]} + {publicColumn} + {privateColumn}
); diff --git a/src/components/SitesTable.tsx b/src/components/SitesTable.tsx index b221f3f19..8eba5cee5 100644 --- a/src/components/SitesTable.tsx +++ b/src/components/SitesTable.tsx @@ -307,29 +307,6 @@ export default function SitesTable({ ); } }, - { - id: "resources", - accessorKey: "resourceCount", - friendlyName: t("resources"), - header: () => {t("resources")}, - cell: ({ row }) => { - const siteRow = row.original; - return ( - - ); - } - }, { accessorKey: "type", friendlyName: t("type"), @@ -376,6 +353,29 @@ export default function SitesTable({ } } }, + { + id: "resources", + accessorKey: "resourceCount", + friendlyName: t("resources"), + header: () => {t("resources")}, + cell: ({ row }) => { + const siteRow = row.original; + return ( + + ); + } + }, { accessorKey: "exitNode", friendlyName: t("exitNode"),