diff --git a/frontend/src/Pages/LoginPage.jsx b/frontend/src/Pages/LoginPage.jsx index 9e579c3..eead9e9 100644 --- a/frontend/src/Pages/LoginPage.jsx +++ b/frontend/src/Pages/LoginPage.jsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import logo from '../assets/stationsaarthi.svg'; // Import your logo import { useNavigate } from 'react-router-dom'; - +import backicon from '../assets/svg/backicon.svg'; // Assuming you have a back icon const Login = () => { const [username, setUsername] = useState(''); const [password, setPassword] = useState(''); @@ -9,6 +9,9 @@ const Login = () => { const RegisterClick = () => { navigate('/Register'); // Navigates to the login page } + const HomeClick = () => { + navigate('/'); // Navigates to the home page + } const handleLogin = (e) => { e.preventDefault(); // Handle login logic here @@ -18,6 +21,7 @@ const Login = () => { return (