This commit is contained in:
zadit
2024-10-22 16:05:30 +07:00
parent e2522bd91c
commit 1ecc6db645
17 changed files with 320 additions and 137 deletions

View File

@@ -205,7 +205,7 @@ const Item = ({
<div className={styles.itemQty}>
<button
className={styles.addButton}
style={{ backgroundColor: !isAvailable ? "gray" : "inherit" }}
style={{ backgroundColor: !isAvailable ? "" : "inherit", border: `2px solid ${isAvailable? 'inherit': 'gray'}`, color: `${isAvailable? '#73a585': 'gray'}`}}
onClick={handlePlusClick}
disabled={!isAvailable} // Optionally disable the button if not available
>
@@ -217,7 +217,7 @@ const Item = ({
<button
className={styles.addButton}
style={{
backgroundColor: "#4da94d",
backgroundColor: "white",
width: "150px",
}}
onClick={isBeingEdit ? handleUpdate : handleCreate}