mirror of
https://github.com/tale/headplane.git
synced 2026-08-31 09:18:29 +00:00
fix: the error boundary shouldn't have <html>
This commit is contained in:
@@ -64,13 +64,6 @@ export function ErrorBoundary() {
|
|||||||
const routing = isRouteErrorResponse(error)
|
const routing = isRouteErrorResponse(error)
|
||||||
const message = (error instanceof Error ? error.message : 'An unexpected error occurred')
|
const message = (error instanceof Error ? error.message : 'An unexpected error occurred')
|
||||||
return (
|
return (
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Oh no!</title>
|
|
||||||
<Meta/>
|
|
||||||
<Links/>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div className='flex min-h-screen items-center justify-center'>
|
<div className='flex min-h-screen items-center justify-center'>
|
||||||
<div className={clsx(
|
<div className={clsx(
|
||||||
'w-1/3 border p-4 rounded-lg flex flex-col items-center text-center',
|
'w-1/3 border p-4 rounded-lg flex flex-col items-center text-center',
|
||||||
@@ -97,9 +90,6 @@ export function ErrorBoundary() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Scripts/>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ export default function Layout() {
|
|||||||
<main className='container mx-auto overscroll-contain'>
|
<main className='container mx-auto overscroll-contain'>
|
||||||
<Outlet/>
|
<Outlet/>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user