From 1a85c2571690ba592ac5183d5eadaf9846fe532b Mon Sep 17 00:00:00 2001 From: Factiven Date: Mon, 25 Sep 2023 00:44:40 +0700 Subject: Update v4.1.0 (#79) * Update v4.1.0 * Update pages/_app.js --- components/home/content.js | 19 ++--- components/home/staticNav.js | 168 ------------------------------------------- 2 files changed, 5 insertions(+), 182 deletions(-) delete mode 100644 components/home/staticNav.js (limited to 'components/home') diff --git a/components/home/content.js b/components/home/content.js index c869f6b..9dd4408 100644 --- a/components/home/content.js +++ b/components/home/content.js @@ -305,6 +305,7 @@ export default function Content({ anime.image || anime.coverImage?.extraLarge || anime.coverImage?.large || + anime?.coverImage || "https://cdn.discordapp.com/attachments/986579286397964290/1058415946945003611/gray_pfp.png" } alt={ @@ -336,7 +337,7 @@ export default function Content({

Episode{" "} - {anime?.episodeNumber} + {anime?.currentEpisode || anime?.episodeNumber}

@@ -377,16 +378,6 @@ export default function Content({ className="flex flex-col gap-2 shrink-0 cursor-pointer relative group/item" >
- {/* */} )} diff --git a/components/home/staticNav.js b/components/home/staticNav.js deleted file mode 100644 index 3f43461..0000000 --- a/components/home/staticNav.js +++ /dev/null @@ -1,168 +0,0 @@ -import { signIn, signOut, useSession } from "next-auth/react"; -import { getCurrentSeason } from "../../utils/getTimes"; -import Link from "next/link"; -// import { } from "@heroicons/react/24/solid"; -import { useSearch } from "../../lib/hooks/isOpenState"; -import Image from "next/image"; -import { UserIcon } from "@heroicons/react/20/solid"; -import { useRouter } from "next/router"; - -export default function Navigasi() { - const { data: sessions, status } = useSession(); - const year = new Date().getFullYear(); - const season = getCurrentSeason(); - - const router = useRouter(); - - const { setIsOpen } = useSearch(); - - return ( - <> - {/* NAVBAR PC */} -
-
-
- - moopa - -
    -
  • - - This Season - -
  • -
  • - - Manga - -
  • -
  • - - Anime - -
  • -
  • - - Schedule - -
  • - - {status === "loading" ? ( -
  • Loading...
  • - ) : ( - <> - {!sessions && ( -
  • - -
  • - )} - {sessions && ( -
  • - - My List - -
  • - )} - - )} -
-
-
- - {/*
*/} - {sessions ? ( -
- -
- - Profile - -
signOut("AniListProvider")} - className="hover:text-action cursor-pointer" - > - Log out -
-
-
- ) : ( - - )} - {/*
*/} -
-
-
- - ); -} -- cgit v1.2.3