From 0d339eb1436a0517c8f6b9be8043e95337f319d9 Mon Sep 17 00:00:00 2001 From: Ashesh3 <3626859+Ashesh3@users.noreply.github.com> Date: Fri, 5 Jan 2024 00:04:17 +0530 Subject: [PATCH] Make InventoryLog component responsive --- src/Components/Facility/InventoryLog.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Components/Facility/InventoryLog.tsx b/src/Components/Facility/InventoryLog.tsx index 5518b5e320f..b7821990550 100644 --- a/src/Components/Facility/InventoryLog.tsx +++ b/src/Components/Facility/InventoryLog.tsx @@ -117,7 +117,7 @@ export default function InventoryLog(props: any) { let inventoryList: any = []; if (inventory?.length) { - inventoryList = inventory.map((inventoryItem: any) => ( + inventoryList = inventory.map((inventoryItem: any, index) => (
@@ -148,7 +148,11 @@ export default function InventoryLog(props: any) {
-
+
{inventoryItem.probable_accident ? (
Unmarks this transaction as accident @@ -156,7 +160,7 @@ export default function InventoryLog(props: any) { This action will not affect the total stock.
) : ( -
+
Marks this transaction as accident
This action will not affect the total stock. To delete the @@ -212,7 +216,7 @@ export default function InventoryLog(props: any) { <>
- +