From 8bb83319a3600d5b2ba599b687f01aa5a2ce29ae Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Wed, 28 May 2025 16:24:53 +0000 Subject: [PATCH 1/2] refactor: replace MUI components and refactor styles --- .../ErrorBoundary/GlobalErrorBoundary.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx b/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx index f419dc208d39a..72a800262d03d 100644 --- a/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx +++ b/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx @@ -1,9 +1,9 @@ -import Link from "@mui/material/Link"; import { Button } from "components/Button/Button"; import { CoderIcon } from "components/Icons/CoderIcon"; import { useEmbeddedMetadata } from "hooks/useEmbeddedMetadata"; import { type FC, useState } from "react"; import { Helmet } from "react-helmet-async"; +import { Link } from "components/Link/Link"; import { type ErrorResponse, isRouteErrorResponse, @@ -43,14 +43,14 @@ export const GlobalErrorBoundaryInner: FC = ({
-

{errorPageTitle}

-

+

{errorPageTitle}

+

Please try reloading the page. If reloading does not work, you can ask for help in the{" "} Coder Discord community (link opens in a new tab) @@ -58,7 +58,7 @@ export const GlobalErrorBoundaryInner: FC = ({ or{" "} = ({

-
- {isRenderableError && ( From 6d9dd35e462c75f198c4da2ac8ada3d5728d9d2d Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Wed, 28 May 2025 16:25:37 +0000 Subject: [PATCH 2/2] Fix FMT --- site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx b/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx index 72a800262d03d..009a87ba254e0 100644 --- a/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx +++ b/site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx @@ -1,9 +1,9 @@ import { Button } from "components/Button/Button"; import { CoderIcon } from "components/Icons/CoderIcon"; +import { Link } from "components/Link/Link"; import { useEmbeddedMetadata } from "hooks/useEmbeddedMetadata"; import { type FC, useState } from "react"; import { Helmet } from "react-helmet-async"; -import { Link } from "components/Link/Link"; import { type ErrorResponse, isRouteErrorResponse,