Skip to content

Commit 2893ffb

Browse files
authored
Merge pull request #4801 from sopex/react
QoL: Link to dashboard 2.13
2 parents 1a117a2 + b8e3e59 commit 2893ffb

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

frontend/src/components/SiteHeader.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IconLock, IconLogout, IconUser } from "@tabler/icons-react";
2-
import { LocalePicker, ThemeSwitcher } from "src/components";
2+
import { LocalePicker, ThemeSwitcher, NavLink } from "src/components";
33
import { useAuthState } from "src/context";
44
import { useUser } from "src/hooks";
55
import { T } from "src/locale";
@@ -26,16 +26,18 @@ export function SiteHeader() {
2626
<span className="navbar-toggler-icon" />
2727
</button>
2828
<div className="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
29-
<span className={styles.logo}>
30-
<img
31-
src="/images/logo-no-text.svg"
32-
width={40}
33-
height={40}
34-
className="navbar-brand-image"
35-
alt="Logo"
36-
/>
37-
Nginx Proxy Manager
38-
</span>
29+
<NavLink to="/">
30+
<div className={styles.logo}>
31+
<img
32+
src="/images/logo-no-text.svg"
33+
width={40}
34+
height={40}
35+
className="navbar-brand-image"
36+
alt="Logo"
37+
/>
38+
</div>
39+
Nginx Proxy Manager
40+
</NavLink>
3941
</div>
4042
<div className="navbar-nav flex-row order-md-last">
4143
<div className="d-none d-md-flex">

0 commit comments

Comments
 (0)