mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 06:26:58 +00:00
hide plus icon when pending
This commit is contained in:
parent
363380439b
commit
ba3815459c
@ -57,9 +57,7 @@ export function AddToCart({
|
||||
}
|
||||
)}
|
||||
>
|
||||
<div className="absolute left-0 ml-4">
|
||||
<PlusIcon className="h-5" />
|
||||
</div>
|
||||
<div className="absolute left-0 ml-4">{!isPending ? <PlusIcon className="h-5" /> : null}</div>
|
||||
<span>{availableForSale ? 'Add To Cart' : 'Out Of Stock'}</span>
|
||||
{isPending ? <LoadingDots className="bg-white" /> : null}
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user