From 70cc8b44c8eafa3d8bec62b55b85c89d0b745e20 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sat, 7 Feb 2026 16:18:11 +0530 Subject: [PATCH 1/9] refactor: simplify LocalLoginForm and enhance RowActions logic for document editing --- surfsense_web/app/(home)/login/LocalLoginForm.tsx | 9 +-------- .../documents/(manage)/components/RowActions.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/surfsense_web/app/(home)/login/LocalLoginForm.tsx b/surfsense_web/app/(home)/login/LocalLoginForm.tsx index 5b2edae71..21928708c 100644 --- a/surfsense_web/app/(home)/login/LocalLoginForm.tsx +++ b/surfsense_web/app/(home)/login/LocalLoginForm.tsx @@ -16,7 +16,6 @@ import { trackLoginAttempt, trackLoginFailure, trackLoginSuccess } from "@/lib/p export function LocalLoginForm() { const t = useTranslations("auth"); - const tCommon = useTranslations("common"); const [username, setUsername] = useState(""); const [password, setPassword] = useState(""); const [showPassword, setShowPassword] = useState(false); @@ -58,12 +57,6 @@ export function LocalLoginForm() { sessionStorage.setItem("login_success_tracked", "true"); } - // Success toast - toast.success(t("login_success"), { - description: "Redirecting to dashboard", - duration: 2000, - }); - // Small delay to show success message setTimeout(() => { router.push(`/auth/callback?token=${data.access_token}`); @@ -123,7 +116,7 @@ export function LocalLoginForm() {