From c0c91b2b8fe3b49865ea0f4cf96dc5b5a59927c6 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 1 Aug 2024 20:38:02 +0530 Subject: added a reset button --- panel/src/pages/LoginPage.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'panel/src/pages') diff --git a/panel/src/pages/LoginPage.jsx b/panel/src/pages/LoginPage.jsx index f763325..41169cb 100644 --- a/panel/src/pages/LoginPage.jsx +++ b/panel/src/pages/LoginPage.jsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { useNavigate } from 'react-router-dom'; // Import useNavigate +import { useNavigate } from 'react-router-dom'; import { signInWithEmailAndPassword } from 'firebase/auth'; import { auth } from '../firebase'; @@ -7,7 +7,7 @@ const LoginPage = () => { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [error, setError] = useState(''); - const navigate = useNavigate(); // Get the navigation function + const navigate = useNavigate(); const handleLogin = async () => { console.log('Attempting login...'); @@ -53,7 +53,8 @@ const LoginPage = () => { /> {error &&

{error}

} - + + ); -- cgit v1.2.3-59-g8ed1b