Skip to content

refactor: replace MUI components and refactor styles #18082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Link from "@mui/material/Link";
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";
Expand Down Expand Up @@ -43,22 +43,22 @@ export const GlobalErrorBoundaryInner: FC<GlobalErrorBoundaryInnerProps> = ({
<CoderIcon className="w-11 h-11" />

<div className="text-content-primary flex flex-col gap-1">
<h1 className="text-2xl font-normal m-0">{errorPageTitle}</h1>
<p className="leading-6 m-0">
<h1 className="text-2xl font-semibold m-0">{errorPageTitle}</h1>
<p className="leading-6 m-0 text-content-secondary text-sm">
Please try reloading the page. If reloading does not work, you can
ask for help in the{" "}
<Link
href="https://discord.gg/coder"
target="_blank"
rel="noreferer"
rel="noreferrer"
>
Coder Discord community
<span className="sr-only"> (link opens in a new tab)</span>
</Link>{" "}
or{" "}
<Link
target="_blank"
rel="noreferer"
rel="noreferrer"
href={publicGithubIssueLink(
coderVersion,
location.pathname,
Expand All @@ -73,9 +73,9 @@ export const GlobalErrorBoundaryInner: FC<GlobalErrorBoundaryInnerProps> = ({
</div>
</div>

<div className="flex flex-row flex-nowrap justify-center gap-4">
<Button asChild className="min-w-32 font-medium">
<Link href={location.pathname}>Reload page</Link>
<div className="flex flex-row flex-nowrap justify-center gap-2">
<Button asChild className="min-w-32 ">
<a href={location.pathname}>Reload page</a>
</Button>

{isRenderableError && (
Expand Down
Loading