From 61a5ba5e6d45dd243ea56efbbb6e40dc22fbac84 Mon Sep 17 00:00:00 2001 From: Jordi Enric Date: Thu, 5 Jun 2025 18:40:36 +0200 Subject: [PATCH] Replace support link with ContactSupportButton component in GlobalErrorBoundaryState --- .../components/ui/GlobalErrorBoundaryState.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/studio/components/ui/GlobalErrorBoundaryState.tsx b/apps/studio/components/ui/GlobalErrorBoundaryState.tsx index fbe2f76a020..e47dd9380bd 100644 --- a/apps/studio/components/ui/GlobalErrorBoundaryState.tsx +++ b/apps/studio/components/ui/GlobalErrorBoundaryState.tsx @@ -14,6 +14,7 @@ import { cn, } from 'ui' import { InlineLinkClassName } from './InlineLink' +import { ContactSupportButton } from './ContactSupportButton' // More correct version of FallbackProps from react-error-boundary export type FallbackProps = { @@ -132,14 +133,14 @@ export const GlobalErrorBoundaryState = ({ error, resetErrorBoundary }: Fallback )}
- + {/* [Joshen] For local and staging, allow us to escape the error boundary */} {/* We could actually investigate how to make this available on prod, but without being able to reliably test this, I'm not keen to do it now */} {process.env.NEXT_PUBLIC_ENVIRONMENT !== 'prod' ? (