mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Add settings link and GitHub reference to navigation menu
This commit is contained in:
@@ -43,7 +43,7 @@ export default function Navigator() {
|
|||||||
<div
|
<div
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
role="button"
|
role="button"
|
||||||
className="btn btn-ghost btn-circle lg:hidden"
|
className="btn btn-ghost btn-circle sm:hidden"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
@@ -52,13 +52,12 @@ export default function Navigator() {
|
|||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
>
|
>
|
||||||
{" "}
|
|
||||||
<path
|
<path
|
||||||
strokeLinecap="round"
|
strokeLinecap="round"
|
||||||
strokeLinejoin="round"
|
strokeLinejoin="round"
|
||||||
strokeWidth="2"
|
strokeWidth="2"
|
||||||
d="M4 6h16M4 12h16M4 18h7"
|
d="M4 6h16M4 12h16M4 18h7"
|
||||||
/>{" "}
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<ul
|
<ul
|
||||||
@@ -88,6 +87,22 @@ export default function Navigator() {
|
|||||||
>
|
>
|
||||||
<a>{t("Tags")}</a>
|
<a>{t("Tags")}</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li
|
||||||
|
onClick={() => {
|
||||||
|
const menu = document.getElementById(
|
||||||
|
"navi_menu",
|
||||||
|
) as HTMLElement;
|
||||||
|
menu.blur();
|
||||||
|
navigate("/manage");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<a>{t("Settings")}</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href={"https://github.com/wgh136/nysoure"} target={"_blank"}>
|
||||||
|
{"Github"}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li
|
<li
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const menu = document.getElementById(
|
const menu = document.getElementById(
|
||||||
@@ -144,7 +159,7 @@ export default function Navigator() {
|
|||||||
<ThemeSwitcher />
|
<ThemeSwitcher />
|
||||||
{app.isLoggedIn() && (
|
{app.isLoggedIn() && (
|
||||||
<button
|
<button
|
||||||
className={"btn btn-circle btn-ghost"}
|
className={"btn btn-circle btn-ghost hidden sm:inline-flex"}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate("/manage");
|
navigate("/manage");
|
||||||
}}
|
}}
|
||||||
@@ -153,6 +168,7 @@ export default function Navigator() {
|
|||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<a
|
<a
|
||||||
|
className={"hidden sm:inline"}
|
||||||
href="https://github.com/wgh136/nysoure"
|
href="https://github.com/wgh136/nysoure"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
Reference in New Issue
Block a user