From bbe18f41218386a5fbaff6df1a45f0182c37aadd Mon Sep 17 00:00:00 2001 From: AymonOsama Date: Thu, 30 Jan 2025 13:21:36 +0200 Subject: [PATCH] Fix: Remove unused variable and update href values in Login.js --- src/pages/Auth/Login.js | 81 ++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 49 deletions(-) diff --git a/src/pages/Auth/Login.js b/src/pages/Auth/Login.js index 81865c5..f8ababb 100644 --- a/src/pages/Auth/Login.js +++ b/src/pages/Auth/Login.js @@ -1,10 +1,6 @@ import React, { useState } from 'react'; import { Link, useNavigate } from 'react-router-dom'; - -// Import motion from framer-motion -import { motion } from 'framer-motion'; - -// Import sweetalert2 +import { motion } from 'framer-motion'; import Swal from 'sweetalert2'; // Import style files @@ -25,7 +21,6 @@ const Login = () => { const navigate = useNavigate(); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); - const [error, setError] = useState(''); const theEmail = 'Aymanausama5@yahoo.com'; const thePassword = '1973aaaa'; @@ -61,16 +56,16 @@ const Login = () => { return (

There’s some Great Discounts

@@ -80,11 +75,10 @@ const Login = () => {

- {/* Email Field */} E-mail
@@ -102,11 +96,10 @@ const Login = () => {
- {/* Password Field */} Password
@@ -124,29 +117,23 @@ const Login = () => {
- {/* Forget Password Link */} Forget Password? - {/* Error Message */} - {error &&

{error}

} - - {/* Sign Up Button */} Sign Up
- {/* Create Account Link */}

Have No Account? @@ -159,33 +146,30 @@ const Login = () => {

- {/* Logo */} logo_yumlicious - {/* About Info */}

Welcome to

Yumlicious

Best Restaurant for Satisfying Your Cravings with Delicious Flavors

- {/* View Menu Button */} { - {/* Social Media Icons */}

Follow US

- - - - + + + +
@@ -217,4 +200,4 @@ const Login = () => { ); }; -export default Login; \ No newline at end of file +export default Login;