fix(pos): handle expired API sessions and add receipt preview close button

This commit is contained in:
Deploy
2026-08-26 07:05:02 +02:00
parent b6af852b54
commit 290ced173b
14 changed files with 52 additions and 17 deletions

View File

@@ -59,7 +59,15 @@ export default function ReceiptModal({
aria-modal="true"
aria-labelledby="receipt-title"
>
<div className="mx-auto w-full max-w-xl rounded-2xl bg-white p-6 shadow-2xl print:max-w-none print:rounded-none print:p-0 print:shadow-none">
<div className="relative mx-auto w-full max-w-xl rounded-2xl bg-white p-6 shadow-2xl print:max-w-none print:rounded-none print:p-0 print:shadow-none">
<button
type="button"
onClick={onDelivered}
aria-label="Cerrar"
className="no-print absolute right-4 top-4 text-2xl text-gray-400 hover:text-gray-700"
>
</button>
{/* Ticket content - only this gets printed */}
<div ref={articleRef} className="ticket-print-area">
<article className="space-y-4 bg-white text-sm text-gray-900 print:bg-white">