feat(MED-111): update navigation links and adjust invitation handling

This commit is contained in:
Danel Kungla
2025-08-04 18:15:22 +03:00
parent edfc9776d3
commit cb7f4f7ba5
11 changed files with 77 additions and 39 deletions

View File

@@ -22,10 +22,6 @@ const links = {
label: 'marketing:documentation',
path: '/docs',
},
Pricing: {
label: 'marketing:pricing',
path: '/pricing',
},
FAQ: {
label: 'marketing:faq',
path: '/faq',

View File

@@ -25,7 +25,7 @@ const MembershipConfirmationNotification: React.FC<{
descriptionKey="account:membershipConfirmation:successDescription"
buttonProps={{
buttonTitleKey: 'account:membershipConfirmation:successButton',
href: pathsConfig.app.selectPackage,
href: pathsConfig.app.home,
}}
/>
);

View File

@@ -8,7 +8,7 @@ import { withI18n } from '~/lib/i18n/with-i18n';
import MembershipConfirmationNotification from './_components/membership-confirmation-notification';
async function UpdateAccountSuccess() {
async function MembershipConfirmation() {
const client = getSupabaseServerClient();
const {
@@ -22,4 +22,4 @@ async function UpdateAccountSuccess() {
return <MembershipConfirmationNotification userId={user.id} />;
}
export default withI18n(UpdateAccountSuccess);
export default withI18n(MembershipConfirmation);

View File

@@ -108,7 +108,7 @@ async function JoinTeamAccountPage(props: JoinTeamAccountPageProps) {
const signOutNext = `${pathsConfig.auth.signIn}?invite_token=${token}`;
// once the user accepts the invitation, we redirect them to the account home page
const accountHome = pathsConfig.app.home;
const membershipConfirmation = pathsConfig.auth.membershipConfirmation;
const email = auth.data.email ?? '';
@@ -120,7 +120,7 @@ async function JoinTeamAccountPage(props: JoinTeamAccountPageProps) {
invitation={invitation}
paths={{
signOutNext,
accountHome,
membershipConfirmation,
}}
/>
</AuthLayoutShell>

View File

@@ -30,7 +30,6 @@ function getPaths() {
'/faq',
'/blog',
'/docs',
'/pricing',
'/contact',
'/cookie-policy',
'/terms-of-service',