From 4062029939009a9a02991d797d0b6f5dc5d4d649 Mon Sep 17 00:00:00 2001 From: BOHA Date: Sun, 7 Jun 2026 11:54:13 +0200 Subject: [PATCH] fix(projects): red links in the projects table (number + order columns) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The project-number column was plain text and the Objednávka link was colored text.secondary (grey/black). Make the number a RouterLink to /projects/:id and recolor the order link to primary.main, so both match the red table-link convention used on Offers/Orders/Invoices. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/admin/pages/Projects.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/admin/pages/Projects.tsx b/src/admin/pages/Projects.tsx index 0460837..8062d63 100644 --- a/src/admin/pages/Projects.tsx +++ b/src/admin/pages/Projects.tsx @@ -246,7 +246,19 @@ export default function Projects() { width: "12%", sortKey: "project_number", mono: true, - render: (p) => p.project_number, + render: (p) => ( + + {p.project_number} + + ), }, { key: "name", @@ -290,7 +302,7 @@ export default function Projects() { component={RouterLink} to={`/orders/${p.order_id}`} sx={{ - color: "text.secondary", + color: "primary.main", textDecoration: "none", "&:hover": { textDecoration: "underline" }, }}