aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-frontend/src
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-17 03:03:49 +0100
committerGravatar Joe Banks <[email protected]>2024-08-17 03:03:49 +0100
commitfee4b5239470b9ded5540329b79f79c7f820ced5 (patch)
tree87e0439091575f6c531d6aaef9542585109d747e /thallium-frontend/src
parentFix all TypeScript errors so far (diff)
Remove unnecessary nesting on error page
Diffstat (limited to 'thallium-frontend/src')
-rw-r--r--thallium-frontend/src/pages/ErrorPage.tsx18
1 files changed, 6 insertions, 12 deletions
diff --git a/thallium-frontend/src/pages/ErrorPage.tsx b/thallium-frontend/src/pages/ErrorPage.tsx
index ffc6f8a..bc842f4 100644
--- a/thallium-frontend/src/pages/ErrorPage.tsx
+++ b/thallium-frontend/src/pages/ErrorPage.tsx
@@ -26,18 +26,12 @@ const LandingPage = () => {
isUnexpected = true;
}
- return (
- <>
- <div>
- <Card title={title}>
- {isUnexpected && <strong>An error occurred:</strong>}
- <p>
- {message}
- </p>
- </Card>
- </div>
- </>
- );
+ return <Card title={title}>
+ {isUnexpected && <strong>An error occurred:</strong>}
+ <p>
+ {message}
+ </p>
+ </Card>;
};
export default LandingPage;