From a80905755d8de6c5f5e45e40034e0102ebf412b1 Mon Sep 17 00:00:00 2001 From: BOHA Date: Sat, 6 Jun 2026 22:33:05 +0200 Subject: [PATCH] =?UTF-8?q?fix(mui):=20Projects=20review=20fixes=20?= =?UTF-8?q?=E2=80=94=20real=20order=20link,=20revert=20title/label,=20drop?= =?UTF-8?q?=20added=20status=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- src/admin/pages/Projects.tsx | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/src/admin/pages/Projects.tsx b/src/admin/pages/Projects.tsx index 418c8d2..20c3653 100644 --- a/src/admin/pages/Projects.tsx +++ b/src/admin/pages/Projects.tsx @@ -1,6 +1,6 @@ import { useState } from "react"; import { useQuery } from "@tanstack/react-query"; -import { useNavigate } from "react-router-dom"; +import { Link as RouterLink, useNavigate } from "react-router-dom"; import { motion } from "framer-motion"; import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; @@ -283,12 +283,13 @@ export default function Projects() { render: (p) => p.order_id ? ( { - e.preventDefault(); - navigate(`/orders/${p.order_id}`); + component={RouterLink} + to={`/orders/${p.order_id}`} + sx={{ + color: "text.secondary", + textDecoration: "none", + "&:hover": { textDecoration: "underline" }, }} - sx={{ cursor: "pointer", color: "text.secondary" }} > {p.order_number} @@ -427,7 +428,7 @@ export default function Projects() { loading={deleteMutation.isPending} > @@ -437,7 +438,7 @@ export default function Projects() { isOpen={showCreate} onClose={() => setShowCreate(false)} onSubmit={handleCreate} - title="Nový projekt" + title="Přidat projekt" subtitle={`Číslo projektu: ${ nextNumberQuery.data?.number ?? nextNumberQuery.data?.next_number ?? @@ -497,19 +498,6 @@ export default function Projects() { - -