fix: EquipmentPage TS errors — stray bracket and testDevice return type
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -352,7 +352,7 @@ export const api = {
|
|||||||
removeDevice: (slug: string, id: string, deviceId: string) =>
|
removeDevice: (slug: string, id: string, deviceId: string) =>
|
||||||
req<void>('DELETE', `/api/hotels/${slug}/workstations/${id}/devices/${deviceId}`),
|
req<void>('DELETE', `/api/hotels/${slug}/workstations/${id}/devices/${deviceId}`),
|
||||||
testDevice: (slug: string, wsId: string, deviceId: string) =>
|
testDevice: (slug: string, wsId: string, deviceId: string) =>
|
||||||
req<{ ok: boolean; error?: string; message?: string }>('POST', `/api/hotels/${slug}/workstations/${wsId}/test-device/${deviceId}`),
|
req<{ ok: boolean; error?: string; message?: string; kkt?: Record<string, unknown>; shift?: Record<string, unknown> }>('POST', `/api/hotels/${slug}/workstations/${wsId}/test-device/${deviceId}`),
|
||||||
sendUpdate: (slug: string, wsId: string) =>
|
sendUpdate: (slug: string, wsId: string) =>
|
||||||
req<{ ok: true }>('POST', `/api/hotels/${slug}/workstations/${wsId}/update`),
|
req<{ ok: true }>('POST', `/api/hotels/${slug}/workstations/${wsId}/update`),
|
||||||
updateAll: (slug: string) =>
|
updateAll: (slug: string) =>
|
||||||
|
|||||||
@@ -762,7 +762,6 @@ function WorkstationCard({
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})()}
|
})()}
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user