diff --git a/src/pages/EquipmentPage.tsx b/src/pages/EquipmentPage.tsx index 4c8a1f4..503d54a 100644 --- a/src/pages/EquipmentPage.tsx +++ b/src/pages/EquipmentPage.tsx @@ -203,7 +203,7 @@ function DeviceForm({ Назначение setPurpose(e.target.value)} + onChange={e => setPurpose(e.target.value as 'fiscal' | 'kitchen' | 'bar' | 'receipt' | 'other')} className="w-full input-field text-sm" > {Object.entries(PURPOSE_LABELS).map(([k, v]) => ( diff --git a/src/pages/PosPage.tsx b/src/pages/PosPage.tsx index ec49714..520026e 100644 --- a/src/pages/PosPage.tsx +++ b/src/pages/PosPage.tsx @@ -445,7 +445,7 @@ export function PosPage() { const [cashDialog, setCashDialog] = useState<'in' | 'out' | null>(null) const [customService, setCustomService] = useState<{ name: string; price: string } | null>(null) - const pollRef = useRef(null) + const pollRef = useRef | null>(null) // Временные гости (mock — в будущем из API) const [guests] = useState([