From 577c93d62b6635a25e746a61fdffb4a79ea817a7 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Thu, 16 Oct 2025 00:52:47 +0100 Subject: [PATCH] Update page.tsx --- app/auth/reset-password/page.tsx | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/app/auth/reset-password/page.tsx b/app/auth/reset-password/page.tsx index a6b79df..1fb5dd4 100644 --- a/app/auth/reset-password/page.tsx +++ b/app/auth/reset-password/page.tsx @@ -1,5 +1,5 @@ "use client"; -import { useState, useEffect } from "react"; +import { useState, useEffect, Suspense } from "react"; import { useRouter, useSearchParams } from "next/navigation"; import Link from "next/link"; import { fetchClient } from "@/lib/api-client"; @@ -14,7 +14,7 @@ interface Vendor { username: string; } -export default function ResetPasswordPage() { +function ResetPasswordForm() { const router = useRouter(); const searchParams = useSearchParams(); const token = searchParams.get('token'); @@ -170,3 +170,26 @@ export default function ResetPasswordPage() { ); } + +// Loading component for Suspense fallback +function ResetPasswordLoading() { + return ( +
Loading reset form...
+