Remove ESLint configuration file and update type imports across components: Deleted eslint.config.js to streamline project setup. Updated type imports in layout, login, register, and other components to use direct imports for improved clarity and consistency. Enhanced error handling in various components and replaced apostrophes with HTML entities for better rendering.

This commit is contained in:
Julien Froidefond
2025-12-10 06:01:34 +01:00
parent 13b8971cc7
commit 44be5d2e98
12 changed files with 75 additions and 130 deletions

View File

@@ -1,6 +1,6 @@
"use client";
import { useState } from "react";
import { useState, type FormEvent } from "react";
import { signIn } from "next-auth/react";
import { useRouter } from "next/navigation";
import Link from "next/link";
@@ -13,7 +13,7 @@ export default function LoginPage() {
const [error, setError] = useState("");
const [loading, setLoading] = useState(false);
const handleSubmit = async (e: React.FormEvent) => {
const handleSubmit = async (e: FormEvent) => {
e.preventDefault();
setError("");
setLoading(true);
@@ -128,7 +128,7 @@ export default function LoginPage() {
href="/register"
className="text-pixel-gold hover:text-orange-400 transition"
>
S'inscrire
S'inscrire
</Link>
</p>
</div>
@@ -138,4 +138,3 @@ export default function LoginPage() {
</main>
);
}