ok
This commit is contained in:
@@ -19,6 +19,7 @@ const Item = ({
|
|||||||
onRemoveClick,
|
onRemoveClick,
|
||||||
isAvailable,
|
isAvailable,
|
||||||
isBeingEdit,
|
isBeingEdit,
|
||||||
|
last
|
||||||
}) => {
|
}) => {
|
||||||
const [selectedImage, setSelectedImage] = useState(imageFile);
|
const [selectedImage, setSelectedImage] = useState(imageFile);
|
||||||
const [previewUrl, setPreviewUrl] = useState(imageUrl);
|
const [previewUrl, setPreviewUrl] = useState(imageUrl);
|
||||||
@@ -89,8 +90,8 @@ const Item = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className={`${!last ? styles.notLast : ""}`}>
|
||||||
<div className={`${styles.item} ${forInvoice ? styles.itemInvoice : ""}`}>
|
<div className={`${styles.item} ${forInvoice ? styles.itemInvoice : ""} `}>
|
||||||
{!forInvoice && (
|
{!forInvoice && (
|
||||||
<div className={styles.imageContainer}>
|
<div className={styles.imageContainer}>
|
||||||
<img
|
<img
|
||||||
@@ -303,7 +304,7 @@ const Item = ({
|
|||||||
</div>
|
</div>
|
||||||
{itemDescription && itemDescription != 'undefined' && itemDescription?.length &&
|
{itemDescription && itemDescription != 'undefined' && itemDescription?.length &&
|
||||||
<div>
|
<div>
|
||||||
<p style={{ color: '#5f5f5f', fontSize: '3.2vw', padding: '5px' }}>{itemDescription}</p>
|
<p style={{ color: '#5f5f5f', fontSize: '3.2vw', padding: '5px', margin: 0 }}>{itemDescription}</p>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,7 +21,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item:not(.itemInvoice) {
|
.item:not(.itemInvoice) {
|
||||||
border-top: 2px solid #00000017;
|
/* border-top: 2px solid #00000017; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.notLast{
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 2px solid #00000017;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemInvoice {
|
.itemInvoice {
|
||||||
|
|||||||
@@ -922,7 +922,7 @@ const ItemLister = ({
|
|||||||
) : null;
|
) : null;
|
||||||
})}
|
})}
|
||||||
|
|
||||||
{items.map((item) => {
|
{items.map((item, indexx) => {
|
||||||
return !forCart || (forCart && item.qty > 0) ? (
|
return !forCart || (forCart && item.qty > 0) ? (
|
||||||
<div
|
<div
|
||||||
key={item.itemId}>
|
key={item.itemId}>
|
||||||
@@ -1004,6 +1004,7 @@ const ItemLister = ({
|
|||||||
|
|
||||||
<Item
|
<Item
|
||||||
key={item.itemId}
|
key={item.itemId}
|
||||||
|
last={index === indexTotal-1 && indexx === items.length - 1}
|
||||||
forCart={forCart}
|
forCart={forCart}
|
||||||
forInvoice={forInvoice}
|
forInvoice={forInvoice}
|
||||||
name={item.name}
|
name={item.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user