Skip to content

Commit

Permalink
frontend:fix: some issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrianislam0or1 committed Jun 5, 2024
1 parent a82d350 commit c419dbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Navbar from "@/components/Shared/Navbar/Navbar";
import { userLogin } from "@/services/actions/userLogin";
import { storeUserInfo } from "@/services/auth.service";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useState } from "react";
import { SubmitHandler, useForm } from "react-hook-form";
Expand Down Expand Up @@ -100,12 +101,12 @@ const LoginPage = () => {
</div>
<div className="text-sm text-center">
Donot have an account?{" "}
<a
<Link
href="/register"
className="font-medium text-indigo-600 hover:text-indigo-500"
>
Sign up
</a>
</Link>
</div>
</form>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/app/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Navbar from "@/components/Shared/Navbar/Navbar";
import { register } from "@/services/actions/register";
import { userLogin } from "@/services/actions/userLogin";
import { storeUserInfo } from "@/services/auth.service";
import Link from "next/link";
import { useRouter } from "next/navigation";
import React, { useState } from "react";

Expand Down Expand Up @@ -212,9 +213,9 @@ const RegisterPage: React.FC = () => {
</form>
<p className="text-center text-gray-600">
Already have an account?{" "}
<a href="/login" className="text-indigo-600">
<Link href="/login" className="text-indigo-600">
Sign in
</a>
</Link>
</p>
</div>
</div>
Expand Down

0 comments on commit c419dbd

Please sign in to comment.