mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 00:22:05 +10:00
custom tier
This commit is contained in:
@ -52,14 +52,16 @@ export default function BillingPlans() {
|
||||
return null;
|
||||
}
|
||||
|
||||
const selectData = firstPlan.pricingTiers.map((tier, index) => {
|
||||
const prevMaxUsers =
|
||||
index > 0 ? firstPlan.pricingTiers[index - 1].upTo : 0;
|
||||
return {
|
||||
value: tier.upTo.toString(),
|
||||
label: `${prevMaxUsers + 1}-${tier.upTo} users`,
|
||||
};
|
||||
});
|
||||
const selectData = firstPlan.pricingTiers
|
||||
.filter((tier) => !tier.custom)
|
||||
.map((tier, index) => {
|
||||
const prevMaxUsers =
|
||||
index > 0 ? firstPlan.pricingTiers[index - 1].upTo : 0;
|
||||
return {
|
||||
value: tier.upTo.toString(),
|
||||
label: `${prevMaxUsers + 1}-${tier.upTo} users`,
|
||||
};
|
||||
});
|
||||
|
||||
return (
|
||||
<Container size="xl" py="xl">
|
||||
|
||||
@ -58,6 +58,7 @@ export interface IBillingPlan {
|
||||
|
||||
interface PricingTier {
|
||||
upTo: number;
|
||||
monthly: number;
|
||||
yearly: number;
|
||||
monthly?: number;
|
||||
yearly?: number;
|
||||
custom?: boolean;
|
||||
}
|
||||
Submodule apps/server/src/ee updated: f32a3ed372...ad7a4bcf57
Reference in New Issue
Block a user