feat(pricing): show remaining places
This commit is contained in:
parent
2e633d3a96
commit
8bc240aa6a
2 changed files with 6 additions and 1 deletions
|
@ -26,7 +26,11 @@ import products from "~/products.yaml";
|
|||
<div>
|
||||
<p>
|
||||
{product.description}
|
||||
{product.isLimited && (<> <strong>Limited places available!</strong></>)}
|
||||
|
||||
{product.remainingPlaces
|
||||
? (<> <strong>{product.remainingPlaces} places remaining!</strong></>)
|
||||
: product.isLimited && (<> <strong>Limited places available!</strong></>)
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
perMonth: true
|
||||
isLimited: true
|
||||
price: 10000
|
||||
remainingPlaces: 2
|
||||
link:
|
||||
text: Apply now
|
||||
href: /team-coaching
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue