refactor(auth): extract shared page header into AuthPageHeader component

- add AuthPageHeader component to centralize title/description markup
- replace inline header divs in LoginPage, RegisterPage, LogoutPage, ForgotPasswordPage, ResetPasswordPage, and ConfirmEmailPage with AuthPageHeader
This commit is contained in:
2026-04-24 17:11:37 -04:00
parent 6ad16cddf9
commit 227b05a61e
7 changed files with 22 additions and 48 deletions
@@ -0,0 +1,10 @@
export default function AuthPageHeader({ title, description }) {
return (
<div className="text-center mb-6 flex flex-col gap-1">
<h1 className="text-[22px] font-bold text-neutral-900 dark:text-white">{title}</h1>
{description && (
<p className="text-sm text-neutral-600 dark:text-neutral-400">{description}</p>
)}
</div>
);
}