Fix web routing
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useState } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useAuth } from "@/context/AuthContext";
|
||||
@@ -140,10 +141,10 @@ export default function RegisterPage() {
|
||||
{loading ? "Creating account…" : "Register"}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
<p className="auth-switch">
|
||||
Already have an account?{" "}
|
||||
<a href="/login" className="auth-switch-link">Log in here</a>
|
||||
<Link href="/login" className="auth-switch-link">Log in here</Link>
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user