fix: checkout page polish, metadata, and typescript fixes

This commit is contained in:
Usman Baig
2026-03-26 21:31:56 +01:00
parent 58ac7b9cc5
commit 6be8952fbe
2 changed files with 11 additions and 3 deletions

8
app/checkout/layout.tsx Normal file
View File

@@ -0,0 +1,8 @@
export const metadata = {
title: 'Checkout — Pulse',
robots: 'noindex, nofollow',
}
export default function CheckoutLayout({ children }: { children: React.ReactNode }) {
return children
}

View File

@@ -19,7 +19,7 @@ import pulseLogo from '@/public/pulse_logo_no_margins.png'
const VALID_PLANS = new Set(Object.keys(PLAN_PRICES))
const VALID_INTERVALS = new Set(['month', 'year'])
const VALID_LIMITS = new Set(TRAFFIC_TIERS.map((t) => t.value))
const VALID_LIMITS = new Set<number>(TRAFFIC_TIERS.map((t) => t.value))
function isValidCheckoutParams(plan: string | null, interval: string | null, limit: string | null) {
if (!plan || !interval || !limit) return false
@@ -196,14 +196,14 @@ function CheckoutContent() {
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
{/* Left — Plan summary */}
<PlanSummary
planId={planId}
plan={planId}
interval={billingInterval}
limit={pageviewLimit}
/>
{/* Right — Payment form */}
<PaymentForm
planId={planId}
plan={planId}
interval={billingInterval}
limit={pageviewLimit}
/>