Error: use a close button instead of go to home when in widget mode

This commit is contained in:
Valere
2025-03-07 10:12:23 +01:00
parent 612ace137a
commit b0a4a954f8
11 changed files with 276 additions and 23 deletions

View File

@@ -72,7 +72,11 @@ export const App: FC = () => {
<Suspense fallback={null}>
<ClientProvider>
<MediaDevicesProvider>
<Sentry.ErrorBoundary fallback={ErrorPage}>
<Sentry.ErrorBoundary
fallback={(error) => (
<ErrorPage error={error} widget={widget} />
)}
>
<DisconnectedBanner />
<Routes>
<SentryRoute path="/" element={<HomePage />} />