Skip to content

Commit

Permalink
Resolve login + registration lint errors. All lint errors resolved fo…
Browse files Browse the repository at this point in the history
…r now.
  • Loading branch information
nnayk committed Nov 12, 2023
1 parent 684eea3 commit 17c8634
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Frontend/src/pages/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import axios from "axios";
// pages/register.js
import "tailwindcss/tailwind.css"; // Import Tailwind CSS
import { useRouter } from "next/router";
import Link from "next/link";

const Login = () => {
const router = useRouter();
Expand Down Expand Up @@ -81,10 +82,10 @@ const Login = () => {
Login
</button>
<p className="text-gray-600 text-sm">
Don't have an account yet?{" "}
<a href="/register" className="text-blue-500 hover:underline">
Don&apos;t have an account yet?{" "}
<Link href="/register" className="text-blue-500 hover:underline">
Sign up!
</a>
</Link>
</p>
</form>
</div>
Expand Down
5 changes: 3 additions & 2 deletions Frontend/src/pages/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "tailwindcss/tailwind.css"; // Import Tailwind CSS
import { useRouter } from "next/router";
import { Tooltip } from "react-tooltip";
import { AiFillQuestionCircle } from "react-icons/ai";
import Link from "next/link";

const Register = () => {
const router = useRouter();
Expand Down Expand Up @@ -187,9 +188,9 @@ const Register = () => {
</button>
<p className="text-gray-600 text-sm">
Already have an account?{" "}
<a href="/login" className="text-blue-500 hover:underline">
<Link href="/login" className="text-blue-500 hover:underline">
Log in
</a>
</Link>
</p>
</form>
</div>
Expand Down

0 comments on commit 17c8634

Please sign in to comment.