diff options
| author | 2024-08-25 04:04:14 +0100 | |
|---|---|---|
| committer | 2024-08-25 04:04:14 +0100 | |
| commit | a828759694a3606bd2154e85696535311b18f824 (patch) | |
| tree | eb7da5dbdc0bd1ad23517bf639b9ad540040e3e0 /thallium-frontend/src/pages/ErrorPage.tsx | |
| parent | Add 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.tsx | 15 |
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; |