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:
@@ -246,7 +246,19 @@ export default function Projects() {
|
|||||||
width: "12%",
|
width: "12%",
|
||||||
sortKey: "project_number",
|
sortKey: "project_number",
|
||||||
mono: true,
|
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",
|
key: "name",
|
||||||
@@ -290,7 +302,7 @@ export default function Projects() {
|
|||||||
component={RouterLink}
|
component={RouterLink}
|
||||||
to={`/orders/${p.order_id}`}
|
to={`/orders/${p.order_id}`}
|
||||||
sx={{
|
sx={{
|
||||||
color: "text.secondary",
|
color: "primary.main",
|
||||||
textDecoration: "none",
|
textDecoration: "none",
|
||||||
"&:hover": { textDecoration: "underline" },
|
"&:hover": { textDecoration: "underline" },
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user