fix: TS errors — EquipmentPage purpose cast, PosPage NodeJS.Timeout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-26 23:18:51 +03:00
parent fbb06265f9
commit 239846c077
2 changed files with 2 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ function DeviceForm({
<label className="block text-xs font-medium text-slate-500 mb-1">Назначение</label>
<select
value={purpose}
onChange={e => 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]) => (

View File

@@ -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<NodeJS.Timeout | null>(null)
const pollRef = useRef<ReturnType<typeof setTimeout> | null>(null)
// Временные гости (mock — в будущем из API)
const [guests] = useState<GuestRow[]>([