shadow and don't availablity
This commit is contained in:
@@ -206,8 +206,10 @@ function FoodPage({}: Props) {
|
||||
>
|
||||
{quantity <= 0 ? (
|
||||
<button onClick={handleAddToCart} disabled={!isAvailable} className="inline-flex w-full justify-center items-center gap-2 disabled:pointer-events-none disabled:opacity-40">
|
||||
<PlusIcon />
|
||||
<div className="text-sm2 pt-0.5 font-normal text-foreground">افزودن</div>
|
||||
{isAvailable && <PlusIcon />}
|
||||
<div className="text-sm2 pt-0.5 font-normal text-foreground">
|
||||
{isAvailable ? "افزودن" : "عدم موجودی"}
|
||||
</div>
|
||||
</button>
|
||||
) : (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user