feat(MED-97): show person name instead of keycloak email in company invite form

This commit is contained in:
2025-09-26 13:26:02 +03:00
parent beeea33842
commit fdc2e3e064
5 changed files with 10 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ import { Trans } from '@kit/ui/trans';
import { createI18nServerInstance } from '~/lib/i18n/i18n.server';
import { withI18n } from '~/lib/i18n/with-i18n';
import { toTitleCase } from '~/lib/utils';
interface JoinTeamAccountPageProps {
searchParams: Promise<{
@@ -110,12 +111,12 @@ async function JoinTeamAccountPage(props: JoinTeamAccountPageProps) {
// once the user accepts the invitation, we redirect them to the account home page
const membershipConfirmation = pathsConfig.auth.membershipConfirmation;
const email = auth.data.email ?? '';
const fullName = toTitleCase(auth.data.user_metadata.full_name ?? '');
return (
<AuthLayoutShell Logo={AppLogo}>
<AcceptInvitationContainer
email={email}
fullName={fullName}
inviteToken={token}
invitation={invitation}
paths={{