From 50da2a139a6059f52285539dddc184afae110176 Mon Sep 17 00:00:00 2001 From: Samandar Turg'unboev Date: Wed, 25 Jun 2025 17:21:24 +0500 Subject: [PATCH] print added --- src/routes/private/boxes-print/BoxesPrint.tsx | 4 +++- src/routes/private/boxes-print/BoxesPrintList.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/private/boxes-print/BoxesPrint.tsx b/src/routes/private/boxes-print/BoxesPrint.tsx index 7b5f38a..3d82f4e 100644 --- a/src/routes/private/boxes-print/BoxesPrint.tsx +++ b/src/routes/private/boxes-print/BoxesPrint.tsx @@ -33,9 +33,10 @@ interface BoxesPrintProps { weight: number; }>; }; + key: number | string; } -const BoxesPrint = forwardRef(({ boxData }, ref) => { +const BoxesPrint = forwardRef(({ boxData, key }, ref) => { return ( (({ boxData }, ref height: '100mm', }, }} + key={key} > diff --git a/src/routes/private/boxes-print/BoxesPrintList.tsx b/src/routes/private/boxes-print/BoxesPrintList.tsx index 09cac0c..f96e002 100644 --- a/src/routes/private/boxes-print/BoxesPrintList.tsx +++ b/src/routes/private/boxes-print/BoxesPrintList.tsx @@ -20,7 +20,7 @@ const BoxesPrintList = forwardRef(({ boxDat
{productsChunks.map((chunk, index) => (
- +
))}