gpt-engineer-app[bot] commited on
Commit ·
9e4efd9
1
Parent(s): faa354f
Changes
Browse files
src/routes/dashboard.forensic.tsx
CHANGED
|
@@ -23,6 +23,18 @@ import {
|
|
| 23 |
|
| 24 |
export const Route = createFileRoute("/dashboard/forensic")({
|
| 25 |
component: ForensicPage,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
});
|
| 27 |
|
| 28 |
type Stage = 1 | 2 | 3;
|
|
|
|
| 23 |
|
| 24 |
export const Route = createFileRoute("/dashboard/forensic")({
|
| 25 |
component: ForensicPage,
|
| 26 |
+
errorComponent: ({ error, reset }) => (
|
| 27 |
+
<div className="p-8 max-w-2xl mx-auto space-y-4">
|
| 28 |
+
<h2 className="text-lg font-semibold text-destructive">Forensic request failed</h2>
|
| 29 |
+
<p className="text-sm text-muted-foreground whitespace-pre-wrap">{error.message}</p>
|
| 30 |
+
<button
|
| 31 |
+
onClick={() => reset()}
|
| 32 |
+
className="px-4 py-2 rounded-md bg-primary text-primary-foreground text-sm font-medium"
|
| 33 |
+
>
|
| 34 |
+
Try again
|
| 35 |
+
</button>
|
| 36 |
+
</div>
|
| 37 |
+
),
|
| 38 |
});
|
| 39 |
|
| 40 |
type Stage = 1 | 2 | 3;
|