Skip to content

Commit 72232e7

Browse files
committed
fix: readded external link icon and opening in new tab
1 parent 1801c98 commit 72232e7

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

app/common/defaultNavbar.tsx

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use client';
22

33
import {Navbar} from 'flowbite-react';
4+
import React from "react";
5+
import {GoLinkExternal} from "react-icons/go";
6+
47
const playerWiki = 'https://wiki.unitystation.org'
58
const devWiki = 'https://unitystation.github.io/unitystation/'
69

@@ -10,22 +13,26 @@ export default function DefaultNavbar() {
1013
<Navbar.Brand/>
1114
<Navbar.Toggle/>
1215
<Navbar.Collapse>
13-
<Navbar.Link active href="/">
14-
<p>
15-
Home
16-
</p>
16+
<Navbar.Link href="/">
17+
<p>Home</p>
1718
</Navbar.Link>
1819
<Navbar.Link href="/blog">
19-
Blog
20+
<p>Blog</p>
2021
</Navbar.Link>
2122
<Navbar.Link href="/changelog">
22-
Changelog
23+
<p>Changelog</p>
2324
</Navbar.Link>
24-
<Navbar.Link href={playerWiki}>
25-
Player&apos;s wiki
25+
<Navbar.Link href={playerWiki} target="_blank">
26+
<div className="flex flex-row gap-1">
27+
<p>Player&apos;s wiki</p>
28+
<GoLinkExternal/>
29+
</div>
2630
</Navbar.Link>
27-
<Navbar.Link href={devWiki}>
28-
Dev&apos;s wiki
31+
<Navbar.Link href={devWiki} target="_blank">
32+
<div className="flex flex-row gap-1">
33+
<p>Dev&apos;s wiki</p>
34+
<GoLinkExternal/>
35+
</div>
2936
</Navbar.Link>
3037
</Navbar.Collapse>
3138
</Navbar>

0 commit comments

Comments
 (0)