From 25a7d8cd399e7a462299740c2e955ecb82247d97 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 02:26:54 +0000 Subject: [PATCH] Prettier format pending files --- client/components/ErrorBoundary.tsx | 27 +++++++++++++++++---------- client/main.tsx | 14 +++++++------- index.html | 5 ++++- 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/client/components/ErrorBoundary.tsx b/client/components/ErrorBoundary.tsx index 8d4a6379..47c963a0 100644 --- a/client/components/ErrorBoundary.tsx +++ b/client/components/ErrorBoundary.tsx @@ -1,7 +1,7 @@ -import React, { Component, ErrorInfo, ReactNode } from 'react'; -import { Alert, AlertDescription } from '@/components/ui/alert'; -import { Button } from '@/components/ui/button'; -import { AlertTriangle, RefreshCw } from 'lucide-react'; +import React, { Component, ErrorInfo, ReactNode } from "react"; +import { Alert, AlertDescription } from "@/components/ui/alert"; +import { Button } from "@/components/ui/button"; +import { AlertTriangle, RefreshCw } from "lucide-react"; interface Props { children: ReactNode; @@ -15,7 +15,7 @@ interface State { class ErrorBoundary extends Component { public state: State = { - hasError: false + hasError: false, }; public static getDerivedStateFromError(error: Error): State { @@ -23,7 +23,7 @@ class ErrorBoundary extends Component { } public componentDidCatch(error: Error, errorInfo: ErrorInfo) { - console.error('Uncaught error:', error, errorInfo); + console.error("Uncaught error:", error, errorInfo); this.setState({ error, errorInfo }); } @@ -46,11 +46,14 @@ class ErrorBoundary extends Component {

Something went wrong

- An error occurred while rendering the application. This is usually temporary. + An error occurred while rendering the application. This is + usually temporary.

{this.state.error && (
- Error details + + Error details +
                         {this.state.error.message}
                       
@@ -59,9 +62,13 @@ class ErrorBoundary extends Component {
- +
-