Update pricing table to exclude flat line items

The pricing table component now filters out flat line items as they do not require further explanation. Consequently, changes have been made to the billing sample configuration file, turning a previously metered item into a flat one for clearer demonstration of usage.
This commit is contained in:
giancarlo
2024-06-02 12:22:52 +07:00
parent ced1b4f7e3
commit 26b2eed60d
2 changed files with 6 additions and 11 deletions

View File

@@ -33,14 +33,7 @@ export default createBillingSchema({
id: 'price_1NNwYHI1i3VnbZTqI2UzaHIe',
name: 'Addon 2',
cost: 9.99,
type: 'metered' as const,
unit: 'GB',
tiers: [
{
cost: 0.5,
upTo: 'unlimited',
},
],
type: 'flat' as const,
},
],
},