Skip to content

Commit

Permalink
Fix LoginFormPage.tsx auth dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
abarghoud committed Oct 26, 2024
1 parent 5b96fee commit d99d776
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/client/src/app/components/form/LoginFormPage.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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');
Expand Down

0 comments on commit d99d776

Please sign in to comment.