Skip to content

Commit 4497e18

Browse files
committed
fix: format
1 parent d2c5927 commit 4497e18

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

site/src/components/ErrorBoundary/GlobalErrorBoundary.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2-
import { GlobalErrorBoundaryInner } from "./GlobalErrorBoundary";
2+
import { expect, userEvent } from "@storybook/test";
33
import { within } from "@testing-library/react";
44
import type { ErrorResponse } from "react-router-dom";
5-
import { expect, userEvent } from "@storybook/test";
5+
import { GlobalErrorBoundaryInner } from "./GlobalErrorBoundary";
66

77
/**
88
* React Router ErrorResponses have a "hidden" internal field that RR uses to

site/src/components/ErrorBoundary/GlobalErrorBoundary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import type { Interpolation } from "@emotion/react";
1111
import Link from "@mui/material/Link";
1212
import { Button } from "components/Button/Button";
1313
import { useEmbeddedMetadata } from "hooks/useEmbeddedMetadata";
14-
import { useState, type FC } from "react";
14+
import { type FC, useState } from "react";
1515
import { Helmet } from "react-helmet-async";
1616
import {
17+
type ErrorResponse,
1718
isRouteErrorResponse,
1819
useLocation,
1920
useRouteError,
20-
type ErrorResponse,
2121
} from "react-router-dom";
2222

2323
const errorPageTitle = "Something went wrong";

site/src/router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { GlobalErrorBoundary } from "components/ErrorBoundary/GlobalErrorBoundary";
12
import { TemplateRedirectController } from "pages/TemplatePage/TemplateRedirectController";
23
import { Suspense, lazy } from "react";
34
import {
@@ -22,7 +23,6 @@ import { UsersLayout } from "./pages/UsersPage/UsersLayout";
2223
import UsersPage from "./pages/UsersPage/UsersPage";
2324
import { WorkspaceSettingsLayout } from "./pages/WorkspaceSettingsPage/WorkspaceSettingsLayout";
2425
import WorkspacesPage from "./pages/WorkspacesPage/WorkspacesPage";
25-
import { GlobalErrorBoundary } from "components/ErrorBoundary/GlobalErrorBoundary";
2626

2727
// Lazy load pages
2828
// - Pages that are secondary, not in the main navigation or not usually accessed

0 commit comments

Comments
 (0)