This commit is contained in:
zadit
2025-02-11 10:05:37 +07:00
parent 2a762a9610
commit b6776c0f59

View File

@@ -874,13 +874,27 @@ const ItemLister = ({
return !forCart || (forCart && item.qty > 0) ? ( return !forCart || (forCart && item.qty > 0) ? (
<> <>
{isEditItem == item.itemId && ( {isEditItem == item.itemId && (
<button // <button
className={styles["add-item-button"]} // className={styles["add-item-button"]}
onClick={() => editItem(0)} // onClick={() => editItem(0)}
style={{ display: "inline-block" }} // style={{ display: "inline-block" }}
> // >
batal // batal
</button> // </button>
<div style={{ position: 'fixed', width: '100vw', height: '100vh', left: 0, bottom: 0, display: 'flex', flexDirection: 'column-reverse', zIndex: 200 }}>
<div style={{ display: 'flex', flexDirection: 'column',padding: '15px', height: '40%', backgroundColor: '#bdbdbd', borderRadius: '20px 20px 0 0' }}>
<div style={{display: 'flex'}}>
<div style={{width: '26vw', height: '26vw'}}>
<img style={{width: '100%', height: '100%', borderRadius: '10px'}}src={getImageUrl(item.image)}></img>
</div>
<div style={{width: '72%', height: '26vw', display: 'flex', justifyContent: 'center', alignItems: 'center'}}>
<div style={{width: '140px', height: '40px', alignContent: 'center', textAlign: 'center', borderRadius: '10px', border: '1px solid black'}}>
Ganti gambar
</div>
</div>
</div>
</div>
</div>
)} )}
<div className={styles["itemWrapper"]}> <div className={styles["itemWrapper"]}>
{isEditMode && isEditItem != item.itemId && ( {isEditMode && isEditItem != item.itemId && (