aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-15 16:09:40 +0100
committerSascha <GlancingMind@outlook.com>2021-03-15 16:35:14 +0100
commit833f020a9b97656941434a5e9bc5248ee0caeb76 (patch)
tree6a4a9abba2ec34457e12e0288992a3a987253f12
parent09fabc98a357454b2c4da4f08ce269bb4106c36a (diff)
downloadgit-bug-833f020a9b97656941434a5e9bc5248ee0caeb76.tar.gz
Use BackToList button on 404-Page
-rw-r--r--webui/src/pages/notfound/NotFoundPage.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/webui/src/pages/notfound/NotFoundPage.tsx b/webui/src/pages/notfound/NotFoundPage.tsx
index 57b186c5..2c6f6854 100644
--- a/webui/src/pages/notfound/NotFoundPage.tsx
+++ b/webui/src/pages/notfound/NotFoundPage.tsx
@@ -1,7 +1,8 @@
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
-import ArrowBackIcon from '@material-ui/icons/ArrowBack';
+
+import BackToListButton from '../../components/BackToListButton';
const useStyles = makeStyles((theme) => ({
main: {
@@ -22,8 +23,8 @@ const useStyles = makeStyles((theme) => ({
fontSize: '80px',
},
backLink: {
- textDecoration: 'none',
- color: theme.palette.text.primary,
+ marginTop: theme.spacing(1),
+ textAlign: 'center',
},
header: {
fontSize: '30px',
@@ -41,10 +42,9 @@ function NotFoundPage() {
className={classes.logo}
alt="git-bug Logo"
/>
- <a href="/" className={classes.backLink}>
- <h2 className={classes.header}>Go back to start page</h2>
- <ArrowBackIcon className={classes.icon} />
- </a>
+ <div className={classes.backLink}>
+ <BackToListButton />
+ </div>
</main>
);
}