summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/pages/NotFound.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-10 17:31:43 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-10 17:31:43 +0200
commitc2c5dfe0119546935118ce5ae1803bf87f0b787c (patch)
treec4c5331f899e572003cf61c6230fd17a7ef5497b /opendc-web/opendc-web-ui/src/pages/NotFound.js
parent6e6f14db8986f5de6491b51117de0e1b0438b341 (diff)
ui: Update React dependencies
This change updates the React dependencies to version 17, in order to keep up to date with React.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/pages/NotFound.js')
-rw-r--r--opendc-web/opendc-web-ui/src/pages/NotFound.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/opendc-web/opendc-web-ui/src/pages/NotFound.js b/opendc-web/opendc-web-ui/src/pages/NotFound.js
index 72be7342..b933ffa5 100644
--- a/opendc-web/opendc-web-ui/src/pages/NotFound.js
+++ b/opendc-web/opendc-web-ui/src/pages/NotFound.js
@@ -1,14 +1,15 @@
import React from 'react'
-import DocumentTitle from 'react-document-title'
import TerminalWindow from '../components/not-found/TerminalWindow'
import './NotFound.sass'
+import { useDocumentTitle } from '../util/hooks'
-const NotFound = () => (
- <DocumentTitle title="Page Not Found - OpenDC">
+const NotFound = () => {
+ useDocumentTitle('Page Not Found - OpenDC')
+ return (
<div className="not-found-backdrop">
<TerminalWindow />
</div>
- </DocumentTitle>
-)
+ )
+}
export default NotFound