Skip to content

Commit

Permalink
Update Register.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
pragyanbhatt1213 authored Oct 5, 2024
1 parent 35af878 commit ef7c519
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/src/Pages/Register.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState } from 'react';
import { Link } from 'react-router-dom'; // Add this import
import logo from '../assets/stationsaarthi.svg';
import logo from '../assets/stationsaarthi.svg'; // Ensure the path is correct

const Register = () => {
const [name, setName] = useState('');
Expand Down Expand Up @@ -94,12 +93,12 @@ const Register = () => {
</button>
</form>

{/* Already have an account link - Updated to use Link component */}
{/* Already have an account link */}
<p className="mt-4 text-gray-700 text-sm">
Already have an account?{' '}
<Link to="/login" className="text-blue-500 font-medium hover:underline transition duration-300 transform hover:scale-105">
<a href="/login" className="text-blue-500 font-medium hover:underline transition duration-300 transform hover:scale-105">
Log in
</Link>
</a>
</p>
</div>
);
Expand Down

0 comments on commit ef7c519

Please sign in to comment.