correction npm run build admin

This commit is contained in:
2026-05-11 13:47:27 +02:00
parent 1df2503f0b
commit 139d6991f5
8 changed files with 85 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
"use client";
export default function GlobalError({
error,
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
return (
<html lang="fr">
<body>
<div style={{ padding: '2rem', textAlign: 'center', fontFamily: 'sans-serif' }}>
<h2>Une erreur critique est survenue !</h2>
<button
onClick={() => reset()}
style={{ padding: '0.5rem 1rem', marginTop: '1rem', cursor: 'pointer' }}
>
Réessayer
</button>
</div>
</body>
</html>
);
}