diff --git a/app/auth/reset-password/page.tsx b/app/auth/reset-password/page.tsx index 558e68a..a6b79df 100644 --- a/app/auth/reset-password/page.tsx +++ b/app/auth/reset-password/page.tsx @@ -1,8 +1,13 @@ "use client"; import { useState, useEffect } from "react"; import { useRouter, useSearchParams } from "next/navigation"; +import Link from "next/link"; import { fetchClient } from "@/lib/api-client"; import { toast } from "sonner"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { Loader2 } from "lucide-react"; interface Vendor { id: string; @@ -80,10 +85,12 @@ export default function ResetPasswordPage() { if (loading) { return ( -
-
-
-

Validating token...

+
+
+
+
+

Validating token...

+
); @@ -94,63 +101,71 @@ export default function ResetPasswordPage() { } return ( -
-
+
+
-

Reset Password

-

+

Reset Password

+

Reset password for {vendor.username}

-
-
- - setPassword(e.target.value)} - className="w-full rounded-md border border-border bg-background px-3 py-2 text-sm" - placeholder="Enter new password" - /> + +
+
+ + setPassword(e.target.value)} + className="mt-1" + disabled={submitting} + placeholder="Enter new password" + /> +
+
+ + setConfirmPassword(e.target.value)} + className="mt-1" + disabled={submitting} + placeholder="Confirm new password" + /> +
-
- - setConfirmPassword(e.target.value)} - className="w-full rounded-md border border-border bg-background px-3 py-2 text-sm" - placeholder="Confirm new password" - /> -
- - + {submitting ? ( + + + Resetting password... + + ) : ( + "Reset Password" + )} + - +

+ Remember your password?{" "} + + Sign in + +

);