Skip to content

Commit

Permalink
fix(finefoods-client): hide number input when no order in cart
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed May 20, 2024
1 parent 5cb305c commit af97257
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,13 @@ const OrderAmountInput = ({ productId }: { productId: number }) => {
return (
<div className="flex shrink-0 gap-4">
<div
className={cn("relative flex items-center overflow-hidden", {
"opacity-20": !order,
})}
className={cn(
"relative flex items-center overflow-hidden",
"transition-opacity duration-300 ease-in-out",
{
"opacity-0": !order,
},
)}
>
<button
className="h-full rounded-tl-md rounded-bl-md border p-2 transition-all hover:bg-gray-50 active:bg-gray-50"
Expand Down

0 comments on commit af97257

Please sign in to comment.