final prcing fixes
This commit is contained in:
@@ -19,6 +19,7 @@ interface Plan {
|
||||
name: string;
|
||||
slug?: string;
|
||||
price: number | string;
|
||||
original_price?: number | string;
|
||||
annual_discount_percent?: number;
|
||||
is_featured?: boolean;
|
||||
max_sites?: number;
|
||||
@@ -69,9 +70,11 @@ const convertToPricingPlan = (plan: Plan): PricingPlan => {
|
||||
|
||||
return {
|
||||
id: plan.id,
|
||||
slug: plan.slug,
|
||||
name: plan.name,
|
||||
monthlyPrice: monthlyPrice,
|
||||
price: monthlyPrice,
|
||||
originalPrice: plan.original_price ? (typeof plan.original_price === 'number' ? plan.original_price : parseFloat(String(plan.original_price))) : undefined,
|
||||
annualDiscountPercent: plan.annual_discount_percent || 15,
|
||||
period: '/month',
|
||||
description: description,
|
||||
@@ -206,7 +209,7 @@ const Pricing: React.FC = () => {
|
||||
<style>{`
|
||||
/* Pricing Table Component Styles - Embedded for Marketing Site */
|
||||
.pricing-table-wrapper {
|
||||
max-width: 1560px;
|
||||
max-width: 1660px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@@ -378,10 +381,9 @@ const Pricing: React.FC = () => {
|
||||
<div className="pricing-table-wrapper">
|
||||
<PricingTable1
|
||||
plans={plans.map(convertToPricingPlan)}
|
||||
title="Choose your plan"
|
||||
showToggle={true}
|
||||
onPlanSelect={(plan) => {
|
||||
window.location.href = `/signup?plan=${plan.id}`;
|
||||
window.location.href = `https://app.igny8.com/signup?plan=${plan.slug || plan.id}`;
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user