feat: better ErrorBoundary UI (#1993)

This commit is contained in:
Alex Hancock
2025-04-01 20:55:43 -04:00
committed by GitHub
parent 3d41768b1f
commit a2169932dc
+5 -1
View File
@@ -32,7 +32,11 @@ export class ErrorBoundary extends React.Component<
render() {
if (this.state.hasError) {
return <h1>Something went wrong.</h1>;
return (
<div className="fixed inset-0 w-full h-full flex items-center justify-center bg-background">
<h1 className="text-xl font-semibold text-foreground">Something went wrong.</h1>
</div>
);
}
return this.props.children;