Skip to content

Commit dc7b16d

Browse files
Merge pull request #172 from Suhani1234-5/Signup
in Login page when click on Sign up it is not working
2 parents b27a1dd + 5fcd8a2 commit dc7b16d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/pages/Login/Login.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, ChangeEvent, FormEvent, useContext } from "react";
22
import axios from "axios";
3-
import { useNavigate } from "react-router-dom";
3+
import { useNavigate, Link } from "react-router-dom";
44
import { ThemeContext } from "../../context/ThemeContext";
55
import type { ThemeContextType } from "../../context/ThemeContext";
66

@@ -143,9 +143,12 @@ const Login: React.FC = () => {
143143
<div className="text-center mt-8 pb-8">
144144
<p className={`${mode === "dark" ? "text-slate-500" : "text-gray-600"} text-sm`}>
145145
Don't have an account?
146-
<a href="#" className="ml-1 text-purple-400 hover:text-purple-300 transition-colors duration-300">
146+
<Link
147+
to="/signup"
148+
className="ml-1 text-purple-400 hover:text-purple-300 transition-colors duration-300"
149+
>
147150
Sign up here
148-
</a>
151+
</Link>
149152
</p>
150153
</div>
151154
</div>

0 commit comments

Comments
 (0)