fix(projects): red links in the projects table (number + order columns)

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) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-07 11:54:13 +02:00
parent f017867d5f
commit 4062029939

View File

@@ -246,7 +246,19 @@ export default function Projects() {
width: "12%",
sortKey: "project_number",
mono: true,
render: (p) => p.project_number,
render: (p) => (
<Box
component={RouterLink}
to={`/projects/${p.id}`}
sx={{
color: "primary.main",
textDecoration: "none",
"&:hover": { textDecoration: "underline" },
}}
>
{p.project_number}
</Box>
),
},
{
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" },
}}