From c0c91b2b8fe3b49865ea0f4cf96dc5b5a59927c6 Mon Sep 17 00:00:00 2001
From: Biswakalyan Bhuyan <biswa@surgot.in>
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/LoginPage.jsx')

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 = () => {
           />
         </div>
         {error && <p className="text-danger">{error}</p>}
-        <button onClick={handleLogin} className="btn btn-primary w-full">Login</button>
+        <button onClick={handleLogin} className="btn btn-primary w-full mb-2">Login</button>
+        <button onClick={() => navigate('/reset')} className="btn btn-secondary w-full">Reset Password</button>
       </div>
     </div>
   );
-- 
cgit v1.2.3-59-g8ed1b

