Skip to content

Commit 560b155

Browse files
authored
playground: update panic error screen (#458)
<img width="1624" alt="IMG_7194" src="https://github.com/user-attachments/assets/9dc68761-4d72-4364-93dc-af888bb4d385" />
1 parent 10b944a commit 560b155

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

playground/src/main.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,25 @@ init()
1717
createRoot(document.getElementById("root")!).render(
1818
<StrictMode>
1919
<Sentry.ErrorBoundary
20-
fallback={
21-
<div className="flex items-center justify-center h-screen text-5xl text-orange-700">
22-
Error encounted. Please try refreshing the page.
23-
</div>
24-
}
20+
fallback={() => {
21+
return (
22+
<div className="flex items-center justify-center h-screen text-5xl text-orange-700 ">
23+
<div className="flex flex-col">
24+
<div>An internal error with Squawk has occured.</div>
25+
<div>
26+
Please open an issue at{" "}
27+
<a
28+
href="https://github.com/sbdchd/squawk/issues/new"
29+
className="underline"
30+
>
31+
github.com/sbdchd/squawk
32+
</a>
33+
!
34+
</div>
35+
</div>
36+
</div>
37+
)
38+
}}
2539
>
2640
<App />
2741
</Sentry.ErrorBoundary>

0 commit comments

Comments
 (0)