Rename 'subscription' path to 'return' in pricing components

The path referred to by "subscription" in the pricing table and pages has been updated to "return". This will redirect users back to the home page instead of the previously configured personalAccountBilling page after signing up or selecting a plan.
This commit is contained in:
giancarlo
2024-05-21 13:50:30 +07:00
parent e4d4069aa8
commit 9107e31921
3 changed files with 4 additions and 4 deletions

View File

@@ -277,7 +277,7 @@ function Home() {
config={billingConfig}
paths={{
signUp: pathsConfig.auth.signUp,
subscription: pathsConfig.app.personalAccountBilling,
return: pathsConfig.app.home,
}}
/>
</div>

View File

@@ -16,7 +16,7 @@ export const generateMetadata = async () => {
const paths = {
signUp: pathsConfig.auth.signUp,
subscription: pathsConfig.app.personalAccountBilling,
return: pathsConfig.app.home,
};
async function PricingPage() {

View File

@@ -26,7 +26,7 @@ import { LineItemDetails } from './line-item-details';
interface Paths {
signUp: string;
subscription: string;
return: string;
}
export function PricingTable({
@@ -431,7 +431,7 @@ function DefaultCheckoutButton(
const signUpPath = props.paths.signUp;
const searchParams = new URLSearchParams({
next: props.paths.subscription,
next: props.paths.return,
plan: props.plan.id,
redirectToCheckout: props.redirectToCheckout ? 'true' : 'false',
});