From e4564abc5e30377d64daeca163daa23535c6d0fe Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 22 Oct 2026 18:28:58 +0200 Subject: [PATCH] fix(auth): remove duplicate headings and subtitle on register page --- src/app/(site)/register/page.tsx | 10 +++------- src/components/auth/auth-landing.tsx | 2 +- src/components/auth/auth-promo-card.tsx | 17 ++++++++++------- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/app/(site)/register/page.tsx b/src/app/(site)/register/page.tsx index e0656e9e..5cc18c08 100644 --- a/src/app/(site)/register/page.tsx +++ b/src/app/(site)/register/page.tsx @@ -16,6 +16,7 @@ export async function generateMetadata(): Promise { return { title, description, + robots: { index: false, follow: false }, openGraph: { title, description, type: "website" }, }; } @@ -35,13 +36,8 @@ export default async function RegisterPage() { copy={{ title: t("title"), subtitle: t("subtitle"), - promoTitle: ( - <> - {t("title")} —{" "} - {data.hotelName} - - ), - promoSubtitle: t("subtitle"), + promoTitle: t("subtitle"), + promoSubtitle: undefined, usersOnlineLabel: t("usersOnline", { count: data.online }), whoIsOnlineLabel: t("whoIsOnline"), newestCitizensLabel: t("newestCitizens"), diff --git a/src/components/auth/auth-landing.tsx b/src/components/auth/auth-landing.tsx index 639ed6cf..0dd76e19 100644 --- a/src/components/auth/auth-landing.tsx +++ b/src/components/auth/auth-landing.tsx @@ -81,7 +81,7 @@ export interface AuthLandingCopy { /** Optional success notice rendered above the form (e.g. "registered"). */ notice?: ReactNode; promoTitle: ReactNode; - promoSubtitle: ReactNode; + promoSubtitle?: ReactNode; usersOnlineLabel: string; whoIsOnlineLabel: string; newestCitizensLabel: string; diff --git a/src/components/auth/auth-promo-card.tsx b/src/components/auth/auth-promo-card.tsx index 234b3faf..208df0a3 100644 --- a/src/components/auth/auth-promo-card.tsx +++ b/src/components/auth/auth-promo-card.tsx @@ -6,7 +6,8 @@ interface AuthPromoCardProps { /** Fully formatted "N users online" label. */ onlineLabel: string; title: ReactNode; - subtitle: ReactNode; + /** Optional supporting line under the title. */ + subtitle?: ReactNode; } /** @@ -95,12 +96,14 @@ export function AuthPromoCard({ > {title} -

- {subtitle} -

+ {subtitle && ( +

+ {subtitle} +

+ )} );