mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Add Random resource retrieval and navigation.
This commit is contained in:
@@ -103,6 +103,17 @@ export default function Navigator() {
|
||||
{"Github"}
|
||||
</a>
|
||||
</li>
|
||||
<li
|
||||
onClick={() => {
|
||||
const menu = document.getElementById(
|
||||
"navi_menu",
|
||||
) as HTMLElement;
|
||||
menu.blur();
|
||||
navigate("/random");
|
||||
}}
|
||||
>
|
||||
<a>{t("Random")}</a>
|
||||
</li>
|
||||
<li
|
||||
onClick={() => {
|
||||
const menu = document.getElementById(
|
||||
@@ -143,6 +154,13 @@ export default function Navigator() {
|
||||
>
|
||||
<a>{t("Tags")}</a>
|
||||
</li>
|
||||
<li
|
||||
onClick={() => {
|
||||
navigate("/random");
|
||||
}}
|
||||
>
|
||||
<a>{t("Random")}</a>
|
||||
</li>
|
||||
<li
|
||||
onClick={() => {
|
||||
navigate("/about");
|
||||
|
Reference in New Issue
Block a user