diff options
| author | 2024-08-17 03:03:49 +0100 | |
|---|---|---|
| committer | 2024-08-17 03:03:49 +0100 | |
| commit | fee4b5239470b9ded5540329b79f79c7f820ced5 (patch) | |
| tree | 87e0439091575f6c531d6aaef9542585109d747e | |
| parent | Fix all TypeScript errors so far (diff) | |
Remove unnecessary nesting on error page
| -rw-r--r-- | thallium-frontend/src/pages/ErrorPage.tsx | 18 |
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; |