feat(ui): invoice notes use RichEditor (sanitized render + PDF), matching offers/orders

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-09 16:59:43 +02:00
parent 61673247bf
commit c2d7a96718

View File

@@ -23,6 +23,7 @@ import { useApiMutation } from "../lib/queries/mutations";
import { useAlert } from "../context/AlertContext"; import { useAlert } from "../context/AlertContext";
import { useAuth } from "../context/AuthContext"; import { useAuth } from "../context/AuthContext";
import Forbidden from "../components/Forbidden"; import Forbidden from "../components/Forbidden";
import RichEditor from "../components/RichEditor";
import { import {
DndContext, DndContext,
closestCenter, closestCenter,
@@ -2158,13 +2159,9 @@ export default function InvoiceDetail() {
<Typography variant="subtitle2" sx={{ mb: 2, fontWeight: 600 }}> <Typography variant="subtitle2" sx={{ mb: 2, fontWeight: 600 }}>
Veřejné poznámky na faktuře Veřejné poznámky na faktuře
</Typography> </Typography>
<TextField <RichEditor
multiline
minRows={4}
value={form.notes} value={form.notes}
onChange={(e) => onChange={(val) => setForm((prev) => ({ ...prev, notes: val }))}
setForm((prev) => ({ ...prev, notes: e.target.value }))
}
placeholder="Poznámky zobrazené na faktuře..." placeholder="Poznámky zobrazené na faktuře..."
/> />
</Card> </Card>