+ Patří do rozsahu: {formatDate(c.rangeFrom)} –{" "}
{formatDate(c.rangeTo)}
-
+
)}
-
+
);
}
diff --git a/src/admin/pages/PlanWork.tsx b/src/admin/pages/PlanWork.tsx
index 5881f54..4653070 100644
--- a/src/admin/pages/PlanWork.tsx
+++ b/src/admin/pages/PlanWork.tsx
@@ -1,6 +1,8 @@
import { useState, useMemo, useCallback, useRef, useEffect } from "react";
import { useQuery } from "@tanstack/react-query";
import { motion, AnimatePresence } from "framer-motion";
+import Box from "@mui/material/Box";
+import Typography from "@mui/material/Typography";
import { useAuth } from "../context/AuthContext";
import { useAlert } from "../context/AlertContext";
import {
@@ -13,6 +15,7 @@ import PlanGrid from "../components/PlanGrid";
import PlanCellModal from "../components/PlanCellModal";
import PlanCategoriesModal from "../components/PlanCategoriesModal";
import Forbidden from "../components/Forbidden";
+import { Button, Alert } from "../ui";
import { projectListOptions, type Project } from "../lib/queries/projects";
import { planCategoriesOptions, type PlanCategory } from "../lib/queries/plan";
// plan.css is imported once globally in AdminApp.tsx — no per-page re-import.
@@ -542,120 +545,129 @@ export default function PlanWork() {
}
return (
-
-
+
- Plán prací
-
+
+ Plán prací
+
+
{!canEdit && (
-
- i
-
-
- Režim náhledu — můžete pouze prohlížet plán. Úpravy
- jsou dostupné oprávněným uživatelům.
-
+
+
+ Režim náhledu — můžete pouze prohlížet plán.
+ Úpravy jsou dostupné oprávněným uživatelům.
+
+
)}
- {/* Nav buttons grouped so they stay on one row when the toolbar
- stacks on mobile (see .plan-toolbar-nav in plan.css). On desktop
- the wrapper is an inline-flex with the same 12px gap, so the
- layout is visually identical. */}
-