summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/AppHeader.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-10-27 11:36:19 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-10-27 11:38:06 +0200
commitd40772d2b54040a851223575e8c99eda4567f3a3 (patch)
tree8b72f12998c18636f79944ab9ed1f4503ce8e068 /opendc-web/opendc-web-ui/src/components/AppHeader.js
parent18b7ec85dde70ae0bd74d638d573daeaf3e4365f (diff)
build(web/ui): Update to Next 13 and React 18
This change updates the web interface to use Next 13 and React 18. This release has a couple breaking changes (related to links) which we have fixed accordingly.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/AppHeader.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/AppHeader.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/AppHeader.js b/opendc-web/opendc-web-ui/src/components/AppHeader.js
index f9ef00aa..c046f9c7 100644
--- a/opendc-web/opendc-web-ui/src/components/AppHeader.js
+++ b/opendc-web/opendc-web-ui/src/components/AppHeader.js
@@ -43,14 +43,7 @@ export default function AppHeader({ nav }) {
return (
<Masthead id="app-header" className={styles.header}>
<MastheadMain>
- <MastheadBrand
- className={styles.logo}
- component={(props) => (
- <Link href="/projects">
- <a {...props} />
- </Link>
- )}
- >
+ <MastheadBrand className={styles.logo} component={(props) => <Link href="/projects" {...props} />}>
<Image src="/img/logo.svg" alt="OpenDC logo" width={25} height={25} />
<span>OpenDC</span>
</MastheadBrand>