diff --git a/src/components/Item.js b/src/components/Item.js index 7ef6e22..94c3800 100644 --- a/src/components/Item.js +++ b/src/components/Item.js @@ -19,6 +19,7 @@ const Item = ({ onRemoveClick, isAvailable, isBeingEdit, + last }) => { const [selectedImage, setSelectedImage] = useState(imageFile); const [previewUrl, setPreviewUrl] = useState(imageUrl); @@ -89,8 +90,8 @@ const Item = ({ }; return ( -
-
+
+
{!forInvoice && (
{itemDescription && itemDescription != 'undefined' && itemDescription?.length &&
-

{itemDescription}

+

{itemDescription}

}
diff --git a/src/components/Item.module.css b/src/components/Item.module.css index 76b4b0a..669c163 100644 --- a/src/components/Item.module.css +++ b/src/components/Item.module.css @@ -21,7 +21,12 @@ } .item:not(.itemInvoice) { - border-top: 2px solid #00000017; + /* border-top: 2px solid #00000017; */ +} + +.notLast{ + padding-bottom: 10px; + border-bottom: 2px solid #00000017; } .itemInvoice { diff --git a/src/components/ItemLister.js b/src/components/ItemLister.js index 66fca59..1ec35c0 100644 --- a/src/components/ItemLister.js +++ b/src/components/ItemLister.js @@ -922,7 +922,7 @@ const ItemLister = ({ ) : null; })} - {items.map((item) => { + {items.map((item, indexx) => { return !forCart || (forCart && item.qty > 0) ? (
@@ -1004,6 +1004,7 @@ const ItemLister = ({