fix(private-room): preserve payment return route

This commit is contained in:
2026-07-16 18:06:15 +08:00
parent b64a90f0e3
commit 4981de9b18
17 changed files with 280 additions and 21 deletions
@@ -6,6 +6,7 @@
*/
import { usePaymentLaunchFlow } from "@/app/_hooks/use-payment-launch-flow";
import { PaymentLaunchDialogs } from "@/app/_components/payment/payment-launch-dialogs";
import type { SubscriptionReturnTo } from "@/lib/navigation/subscription_exit";
import {
usePaymentDispatch,
usePaymentState,
@@ -20,7 +21,7 @@ export interface SubscriptionCheckoutButtonProps {
/** 是否可用(未选套餐 / 未勾选协议 → false) */
disabled?: boolean;
subscriptionType: "vip" | "topup";
returnTo?: "chat" | null;
returnTo?: SubscriptionReturnTo;
}
export function SubscriptionCheckoutButton({