aboutsummaryrefslogtreecommitdiff
path: root/pages/index.js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-04-17 20:40:08 +0700
committerFactiven <[email protected]>2023-04-17 20:40:08 +0700
commit8b5272c1495bc4923c89013fe386a68e9297ae6b (patch)
tree4baa6544b0538fb54fbe50228e07c5c9c261ac8d /pages/index.js
parentUpdate [...id].js (diff)
downloadmoopa-8b5272c1495bc4923c89013fe386a68e9297ae6b.tar.xz
moopa-8b5272c1495bc4923c89013fe386a68e9297ae6b.zip
update 1.0
Diffstat (limited to 'pages/index.js')
-rw-r--r--pages/index.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/pages/index.js b/pages/index.js
index 5fe7e37..83c907b 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -21,7 +21,7 @@ export function Navigasi() {
const router = useRouter();
const handleFormSubmission = (inputValue) => {
- router.push(`/search?hasil=${encodeURIComponent(inputValue)}`);
+ router.push(`/search/${encodeURIComponent(inputValue)}`);
};
const handleKeyDown = async (event) => {
@@ -44,13 +44,15 @@ export function Navigasi() {
moopa
</Link>
<ul className="hidden items-center gap-10 pt-2 font-outfit text-[14px] md:flex">
- <Link href="/search">
- <li>AniList Index</li>
- </Link>
- <Link href="/test">
- <li>Manga</li>
- </Link>
- <li>Anime</li>
+ <li>
+ <Link href="/search/anime">AniList Index</Link>
+ </li>
+ <li>
+ <Link href="/search/manga">Manga</Link>
+ </li>
+ <li>
+ <Link href="/search/anime">Anime</Link>
+ </li>
{status === "loading" ? (
<li>Loading...</li>