refactor(routes): move shared pages to global scope
This commit is contained in:
@@ -23,14 +23,14 @@ export interface SubscriptionCheckoutButtonProps {
|
||||
disabled?: boolean;
|
||||
subscriptionType: "vip" | "topup";
|
||||
returnTo?: SubscriptionReturnTo;
|
||||
characterSlug?: string;
|
||||
sourceCharacterSlug?: string;
|
||||
}
|
||||
|
||||
export function SubscriptionCheckoutButton({
|
||||
disabled = false,
|
||||
subscriptionType,
|
||||
returnTo = null,
|
||||
characterSlug = DEFAULT_CHARACTER_SLUG,
|
||||
sourceCharacterSlug = DEFAULT_CHARACTER_SLUG,
|
||||
}: SubscriptionCheckoutButtonProps) {
|
||||
const payment = usePaymentState();
|
||||
const paymentDispatch = usePaymentDispatch();
|
||||
@@ -40,7 +40,7 @@ export function SubscriptionCheckoutButton({
|
||||
payment,
|
||||
paymentDispatch,
|
||||
returnTo: returnTo ?? undefined,
|
||||
characterSlug,
|
||||
characterSlug: sourceCharacterSlug,
|
||||
subscriptionType,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user