From d99d776ad2e11720462bc25a304f11d82af0a3d6 Mon Sep 17 00:00:00 2001 From: Anas Date: Sat, 26 Oct 2024 20:54:44 +0200 Subject: [PATCH] Fix LoginFormPage.tsx auth dependency --- apps/client/src/app/components/form/LoginFormPage.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/client/src/app/components/form/LoginFormPage.tsx b/apps/client/src/app/components/form/LoginFormPage.tsx index 2233540..7e43e68 100644 --- a/apps/client/src/app/components/form/LoginFormPage.tsx +++ b/apps/client/src/app/components/form/LoginFormPage.tsx @@ -1,7 +1,5 @@ import { useState, useEffect, useCallback, FC } from 'react'; import { useNavigate } from 'react-router-dom'; -import { FirebaseAuthenticationService } from '../../service/firebase-authentication-service'; -import { auth } from "../../config/firebase"; import { LoginForm } from './LoginForm'; import { Quotes } from '../Quotes'; import { Logo } from '../Logo'; @@ -11,9 +9,7 @@ import { ResetPassword } from './ResetPassword'; import Home from '../../../assets/Home.jpg'; export const LoginFormPage: FC = () => { - const authService = new FirebaseAuthenticationService(auth); - - const { loading, login, loginWithGoogle, register, user } = useAuth(authService); + const { loading, login, loginWithGoogle, register, user } = useAuth(); const [errors, setErrors] = useState<{ email?: string }>({}); const [isLogin, setIsLogin] = useState(true); const [viewMode, setViewMode] = useState<'login' | 'reset'>('login');