This commit is contained in:
zadit
2025-02-11 11:28:18 +07:00
parent b6776c0f59
commit 578b6f83de
2 changed files with 101 additions and 14 deletions

View File

@@ -16,6 +16,7 @@ import {
} from "../helpers/itemHelper.js";
import ItemType from "./ItemType.js";
import { createItemType } from "../helpers/itemHelper.js";
import ItemConfig from "./ItemConfig.js"
const ItemLister = ({
index,
@@ -881,20 +882,7 @@ const ItemLister = ({
// >
// batal
// </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>
<ItemConfig Item={item} cancelEdit={()=>editItem(0)}/>
)}
<div className={styles["itemWrapper"]}>
{isEditMode && isEditItem != item.itemId && (