From e005d4d95df77a00714a6871f50f304991a3e66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Wed, 27 May 2026 13:48:30 +0800 Subject: [PATCH] fix(ErrorBoundary): use shadcn destructive tokens instead of hardcoded red colors Replace hardcoded red-200/red-50/red-600 with border-destructive, bg-destructive/5, text-destructive. Use variant='destructive' on Button. Align error log styling with PageErrorBoundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- components/ErrorBoundary.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/components/ErrorBoundary.tsx b/components/ErrorBoundary.tsx index 259dc8d..3789b0e 100644 --- a/components/ErrorBoundary.tsx +++ b/components/ErrorBoundary.tsx @@ -41,24 +41,26 @@ export class ErrorBoundary extends Component { render() { if (this.state.hasError) { return ( -
-
- -

糟糕,出了点问题

+
+
+
+ +
+

糟糕,出了点问题

应用遇到了一些意外错误。您可以尝试刷新页面或重置应用。

{this.state.error && ( -
-
+              
+
                   {this.state.error.toString()}
                 
)}