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:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user