correction npm run build admin
This commit is contained in:
25
admin/src/app/global-error.tsx
Normal file
25
admin/src/app/global-error.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user