diff --git a/src/app/(auth)/forgot/page.tsx b/src/app/(auth)/forgot/page.tsx index a839da1..26d696a 100644 --- a/src/app/(auth)/forgot/page.tsx +++ b/src/app/(auth)/forgot/page.tsx @@ -1,45 +1,15 @@ "use client"; -import { useRouter } from "next/navigation"; import { AuthForm } from "@/features/auth/AuthForm"; -import { authStrings } from "@/features/auth/strings"; +import { AuthHeader } from "@/features/auth/AuthHeader"; // Ports ios/Mercury/Features/Auth/ForgotPasswordView.swift: back chevron, // MERCURY wordmark, explanatory subtitle (rendered by AuthForm), the email // field, and the "Сэргээх холбоос авах" CTA. export default function ForgotPasswordPage() { - const router = useRouter(); - return ( <> - - -
- -+
{message}
); diff --git a/src/features/auth/AuthHeader.tsx b/src/features/auth/AuthHeader.tsx new file mode 100644 index 0000000..36a73e3 --- /dev/null +++ b/src/features/auth/AuthHeader.tsx @@ -0,0 +1,71 @@ +"use client"; + +import { useRouter } from "next/navigation"; +import { Icon } from "@/ds"; +import { authStrings } from "./strings"; + +/** + * Shared header for the three auth screens (login / register / forgot): a + * back chevron pinned top-left, then a MERCURY wordmark lockup — a tinted + * monogram badge stacked above the bold, letter-spaced wordmark — centered + * below it. Purely presentational; navigation still goes through + * `router.back()`, unchanged from the markup this replaces in each page. + */ +export function AuthHeader() { + const router = useRouter(); + + return ( +{profileStrings.categories.empty}
+