mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 23:47:31 +00:00
feat: correctly use error boundaries per-page
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { ArrowRight } from "lucide-react";
|
||||
|
||||
import Link from "~/components/link";
|
||||
import PageError from "~/components/page-error";
|
||||
|
||||
import type { Route } from "./+types/overview";
|
||||
|
||||
@@ -64,3 +65,7 @@ export default function Page({ loaderData: { config, isOidcEnabled } }: Route.Co
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
|
||||
return <PageError error={error} page="Settings" />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user