From 62a008e8b1299ca884744091b7ea8cdb59257612 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Mon, 5 Jan 2026 09:55:06 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20X=C3=B3a=20b=E1=BB=8F=20import=20Ca?= =?UTF-8?q?rd=20v=C3=A0=20`watch`=20kh=C3=B4ng=20s=E1=BB=AD=20d=E1=BB=A5ng?= =?UTF-8?q?=20t=E1=BB=AB=20useForm=20trong=20c=C3=A1c=20trang=20x=C3=A1c?= =?UTF-8?q?=20th=E1=BB=B1c.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-client/src/app/(auth)/forgot-password/page.tsx | 2 -- apps/web-client/src/app/(auth)/login/page.tsx | 2 -- 2 files changed, 4 deletions(-) diff --git a/apps/web-client/src/app/(auth)/forgot-password/page.tsx b/apps/web-client/src/app/(auth)/forgot-password/page.tsx index e1762aa5..ab86ff6e 100644 --- a/apps/web-client/src/app/(auth)/forgot-password/page.tsx +++ b/apps/web-client/src/app/(auth)/forgot-password/page.tsx @@ -8,7 +8,6 @@ import { useState } from 'react'; import { authApi } from '@/services/api/auth.api'; import { Button } from '@/features/shared/components/ui/button'; import { Input } from '@/features/shared/components/ui/input'; -import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '@/features/shared/components/ui/card'; import { useTranslations } from 'next-intl'; import { AuthControls } from '@/features/shared/components/layout/auth-controls'; @@ -66,7 +65,6 @@ export default function ForgotPasswordPage() { const { register, handleSubmit, - watch, setValue, formState: { errors, isSubmitting }, } = useForm({ diff --git a/apps/web-client/src/app/(auth)/login/page.tsx b/apps/web-client/src/app/(auth)/login/page.tsx index 2453be8f..b9188cff 100644 --- a/apps/web-client/src/app/(auth)/login/page.tsx +++ b/apps/web-client/src/app/(auth)/login/page.tsx @@ -9,7 +9,6 @@ import { useState } from 'react'; import { useAuthStore } from '@/stores/auth-store'; import { Button } from '@/features/shared/components/ui/button'; import { Input } from '@/features/shared/components/ui/input'; -import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '@/features/shared/components/ui/card'; import { useTranslations } from 'next-intl'; import { AuthControls } from '@/features/shared/components/layout/auth-controls'; @@ -73,7 +72,6 @@ export default function LoginPage() { const { register, handleSubmit, - watch, setValue, formState: { errors, isSubmitting }, } = useForm({