aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend/src/pages/ErrorPage.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-25 04:04:14 +0100
committerGravatar Joe Banks <[email protected]>2024-08-25 04:04:14 +0100
commita828759694a3606bd2154e85696535311b18f824 (patch)
treeeb7da5dbdc0bd1ad23517bf639b9ad540040e3e0 /thallium-frontend/src/pages/ErrorPage.tsx
parentAdd top margin to header (diff)
Make max-width opt in via new container
Diffstat (limited to 'thallium-frontend/src/pages/ErrorPage.tsx')
-rw-r--r--thallium-frontend/src/pages/ErrorPage.tsx15
1 files changed, 9 insertions, 6 deletions
diff --git a/thallium-frontend/src/pages/ErrorPage.tsx b/thallium-frontend/src/pages/ErrorPage.tsx
index 96955b6..84872c2 100644
--- a/thallium-frontend/src/pages/ErrorPage.tsx
+++ b/thallium-frontend/src/pages/ErrorPage.tsx
@@ -1,6 +1,7 @@
import { useRouteError, isRouteErrorResponse } from "react-router-dom";
import Card from "../components/Card";
+import MaxWidthContainer from "../components/MaxWidthContainer";
const ErrorPage = () => {
const error = useRouteError();
@@ -26,12 +27,14 @@ const ErrorPage = () => {
isUnexpected = true;
}
- return <Card title={title}>
- {isUnexpected && <strong>An error occurred:</strong>}
- <p>
- {message}
- </p>
- </Card>;
+ return <MaxWidthContainer>
+ <Card title={title}>
+ {isUnexpected && <strong>An error occurred:</strong>}
+ <p>
+ {message}
+ </p>
+ </Card>
+ </MaxWidthContainer>;
};
export default ErrorPage;