fix(pos): handle expired API sessions and add receipt preview close button
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user