aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/ErrorBoundary.tsx
diff options
context:
space:
mode:
authorCopilot <198982749+Copilot@users.noreply.github.com>2025-06-26 23:44:25 +0200
committerGitHub <noreply@github.com>2025-06-26 23:44:25 +0200
commit7b8594debceb93a1fa400d48fe1dcff943bd5af6 (patch)
tree73e68c7238a91d8931d669364d395ce2994164f4 /src/frontend/app/ErrorBoundary.tsx
parent3dac17a9fb54c977c97280ed4c482e9d4266b7de (diff)
Implement stop sheet modal for map stop interactions (#27)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> Co-authored-by: Ariel Costas Guerrero <ariel@costas.dev>
Diffstat (limited to 'src/frontend/app/ErrorBoundary.tsx')
-rw-r--r--src/frontend/app/ErrorBoundary.tsx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/frontend/app/ErrorBoundary.tsx b/src/frontend/app/ErrorBoundary.tsx
index 5c877b7..c11a82b 100644
--- a/src/frontend/app/ErrorBoundary.tsx
+++ b/src/frontend/app/ErrorBoundary.tsx
@@ -1,4 +1,4 @@
-import React, { Component, type ReactNode } from 'react';
+import React, { Component, type ReactNode } from "react";
interface ErrorBoundaryProps {
children: ReactNode;
@@ -14,14 +14,14 @@ class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
super(props);
this.state = {
hasError: false,
- error: null
+ error: null,
};
}
static getDerivedStateFromError(error: Error): ErrorBoundaryState {
return {
hasError: true,
- error
+ error,
};
}
@@ -31,12 +31,12 @@ class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
render() {
if (this.state.hasError) {
- return <>
- <h1>Something went wrong.</h1>
- <pre>
- {this.state.error?.stack}
- </pre>
- </>;
+ return (
+ <>
+ <h1>Something went wrong.</h1>
+ <pre>{this.state.error?.stack}</pre>
+ </>
+ );
}
return this.props.children;