linter fixes

This commit is contained in:
2025-05-27 15:07:33 +03:00
parent b30796ae4b
commit 85349bf961
16 changed files with 991 additions and 1295 deletions

View File

@@ -10,16 +10,13 @@ import ClientView from './ClientView'
const LoginPage = () => {
const router = useRouter()
const { isAuthenticated } = useUserStore()
const [isClient, setIsClient] = useState(true)
const [isLoading, setIsLoading] = useState(true)
useEffect(() => {
// проверяем логин
if (isAuthenticated) {
// распределяем
if (isClient) {
router.replace('/account')
}
router.replace('/account')
return
}
@@ -28,18 +25,18 @@ const LoginPage = () => {
}, 300)
return () => clearTimeout(timer)
}, [isAuthenticated, router, isClient])
}, [isAuthenticated, router])
if (isLoading) {
return <Loader />
}
return (
<div className="flex items-center justify-center py-8 ">
<div className="flex w-full max-w-xl flex-col gap-4 bg-white rounded-2xl shadow-lg p-6">
<div className="flex items-center justify-center py-8">
<div className="flex w-full max-w-xl flex-col gap-4 rounded-2xl bg-white p-6 shadow-lg">
<div className="flex flex-col items-center py-4">
<h1 className="text-2xl font-medium pb-1">Рады видеть Вас снова!</h1>
<p className="text-base font-medium text-center">
<h1 className="pb-1 text-2xl font-medium">Рады видеть Вас снова!</h1>
<p className="text-center text-base font-medium">
Пожалуйста, авторизуйтесь, чтобы продолжить
</p>
</div>