The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update forgot+reset password pages
Tim Wilson32d0cb34d3dd
diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/auth/reset-password/[token]/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/auth/reset-password/[token]/page.tsxindex d50f3bc5bd..8c48cb976c 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/auth/reset-password/[token]/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/auth/reset-password/[token]/page.tsx@@ -1,4 +1,5 @@import { ResetPasswordForm } from "@/ui/auth/reset-password-form";+import { AuthLayout } from "@/ui/layout/auth-layout";import EmptyState from "@/ui/shared/empty-state";import { prisma } from "@dub/prisma";import { InputPassword } from "@dub/ui";@@ -16,30 +17,27 @@ export default async function ResetPasswordPage({ params: { token } }: Props) {if (!validToken) {return (- <div className="my-10 md:mt-16 lg:mt-20">+ <AuthLayout><EmptyStateicon={InputPassword}title="Invalid Reset Token"description="The password reset token is invalid or expired. Please request a new one."/>- </div>+ </AuthLayout>);}return (- <div className="mx-auto my-10 w-full max-w-md md:mt-16 lg:mt-20">- <div className="rounded-lg border border-neutral-200 bg-white p-8 pb-10">- <h1 className="text-lg font-medium text-neutral-800">+ <AuthLayout>+ <div className="w-full max-w-sm">+ <h3 className="text-center text-xl font-semibold">Reset your password- </h1>- <p className="mt-3 text-sm text-neutral-500">- Enter a new password for your account.- </p>- <div className="mt-8 text-left">+ </h3>+ <div className="mt-8"><ResetPasswordForm /></div></div>- </div>+ </AuthLayout>);}diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/forgot-password/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/forgot-password/page.tsxindex cda18a31e3..84aa0a8e27 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/forgot-password/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/(default)/forgot-password/page.tsx@@ -1,26 +1,18 @@import { ForgotPasswordForm } from "@/ui/auth/forgot-password-form";-import Link from "next/link";+import { AuthLayout } from "@/ui/layout/auth-layout";export default function ForgotPasswordPage() {return (- <div className="mx-auto my-10 w-full max-w-[480px] md:mt-16 lg:mt-20">- <div className="rounded-lg border border-neutral-200 bg-white p-8 pb-10">- <h1 className="text-lg font-medium text-neutral-800">+ <AuthLayout>+ <div className="w-full max-w-sm">+ <h3 className="text-center text-xl font-semibold">Reset your password- </h1>- <div className="mt-8 text-left">+ </h3>++ <div className="mt-8"><ForgotPasswordForm /></div></div>- <p className="mt-4 text-center text-sm text-neutral-500">- Don't have an account? - <Link- href="register"- className="font-semibold text-neutral-500 underline underline-offset-2 transition-colors hover:text-black"- >- Sign up- </Link>- </p>- </div>+ </AuthLayout>);}