full upgrade to dev

This commit is contained in:
2026-01-08 11:31:57 +01:00
parent 4bf94007cc
commit 7320a0562d
17 changed files with 629 additions and 442 deletions

View File

@@ -12,11 +12,11 @@ export default class ErrorBoundary extends React.Component<
this.state = { hasError: false };
}
static getDerivedStateFromError(error: any) {
static getDerivedStateFromError(_error: unknown) {
return { hasError: true };
}
componentDidCatch(error: any, errorInfo: any) {
componentDidCatch(error: unknown, errorInfo: React.ErrorInfo) {
console.error("ErrorBoundary caught an error:", error, errorInfo);
}
@@ -25,7 +25,7 @@ export default class ErrorBoundary extends React.Component<
return (
<div className="p-4 m-4 bg-red-50 border border-red-200 rounded text-red-800">
<h2>Something went wrong!</h2>
<button
<button
className="mt-2 px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700"
onClick={() => this.setState({ hasError: false })}
>
@@ -37,4 +37,4 @@ export default class ErrorBoundary extends React.Component<
return this.props.children;
}
}
}