fix: align landing page prices with backend, pass billing mode in URL to /pricing
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 1m50s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 1m50s
This commit is contained in:
@@ -276,7 +276,8 @@ export default function PricingPage() {
|
||||
const router = useRouter();
|
||||
const searchParams = useSearchParams();
|
||||
const planFromUrl = searchParams.get("plan");
|
||||
const [isYearly, setIsYearly] = useState(false);
|
||||
const billingFromUrl = searchParams.get("billing");
|
||||
const [isYearly, setIsYearly] = useState(billingFromUrl === "yearly");
|
||||
const [plans, setPlans] = useState<Plan[]>(STATIC_PLANS);
|
||||
const [credits, setCredits] = useState<CreditPackage[]>(STATIC_CREDITS);
|
||||
const [currentPlan, setCurrentPlan] = useState<string | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user