fix: TS errors — EquipmentPage purpose cast, PosPage NodeJS.Timeout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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]) => (
|
||||
|
||||
@@ -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[]>([
|
||||
|
||||
Reference in New Issue
Block a user