final prcing fixes
This commit is contained in:
@@ -251,6 +251,12 @@ export default function SignUpFormUnified({
|
||||
};
|
||||
|
||||
const extractFeatures = (plan: Plan): string[] => {
|
||||
// Use features from plan's JSON field if available, otherwise build from limits
|
||||
if (plan.features && plan.features.length > 0) {
|
||||
return plan.features;
|
||||
}
|
||||
|
||||
// Fallback to building from plan limits
|
||||
const features: string[] = [];
|
||||
features.push(`${plan.max_sites} ${plan.max_sites === 1 ? 'Site' : 'Sites'}`);
|
||||
features.push(`${plan.max_users} ${plan.max_users === 1 ? 'User' : 'Users'}`);
|
||||
@@ -628,9 +634,9 @@ export default function SignUpFormUnified({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Features - 3 rows x 2 columns = 6 features */}
|
||||
{/* Features - All features in 2 columns */}
|
||||
<div className="grid grid-cols-2 gap-x-3 gap-y-2.5">
|
||||
{features.slice(0, 6).map((feature, idx) => (
|
||||
{features.map((feature, idx) => (
|
||||
<div key={idx} className="flex items-start gap-2">
|
||||
<CheckCircle className="w-4 h-4 text-green-500 dark:text-green-400 flex-shrink-0 mt-0.5" />
|
||||
<span className="text-sm text-gray-700 dark:text-gray-300 leading-tight">{feature}</span>
|
||||
|
||||
Reference in New Issue
Block a user