diff options
| author | Artrix <[email protected]> | 2024-01-05 05:12:52 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-05 20:12:52 +0700 |
| commit | 553fe1c71082b040e9f9667ad3e99acdb33990b2 (patch) | |
| tree | 0c770c406c8ff934ce34d8b10dbae948a554a619 /pages/en/schedule | |
| parent | migrate to typescript (diff) | |
| download | moopa-553fe1c71082b040e9f9667ad3e99acdb33990b2.tar.xz moopa-553fe1c71082b040e9f9667ad3e99acdb33990b2.zip | |
feat: Implement a way to review/rate anime (#108)
* Make details cover lead back to anime page
* Make 'markProgress' use object instead of param list
* Import Link
* Implement Rate modal
* Pass session into useAniList
Co-authored-by: Factiven <[email protected]>
* Reimplement using markComplete & add toast for failure
* redefined ratemodal
* fix: home page client error
* update version
---------
Co-authored-by: Factiven <[email protected]>
Diffstat (limited to 'pages/en/schedule')
| -rw-r--r-- | pages/en/schedule/index.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pages/en/schedule/index.tsx b/pages/en/schedule/index.tsx index aa30259..42a28c6 100644 --- a/pages/en/schedule/index.tsx +++ b/pages/en/schedule/index.tsx @@ -1,3 +1,5 @@ +// @ts-nocheck + import Image from "next/image"; import { useEffect, useRef, useState } from "react"; import Link from "next/link"; @@ -15,7 +17,6 @@ import { import { scheduleQuery } from "@/lib/graphql/query"; import MobileNav from "@/components/shared/MobileNav"; -import { useSession } from "next-auth/react"; import { redis } from "@/lib/redis"; import Head from "next/head"; import { Navbar } from "@/components/shared/NavBar"; @@ -344,7 +345,7 @@ export default function Schedule({ schedule }: any) { {/* {!isAired(time) && <p>Airing Next</p>} */} <p className={`absolute left-0 h-1.5 w-1.5 rounded-full ${ - isAired(time) ? "bg-action" : "bg-gray-600" // Add a class for currently airing anime + isAired(+time) ? "bg-action" : "bg-gray-600" // Add a class for currently airing anime }`} ></p> </div> @@ -371,14 +372,15 @@ export default function Schedule({ schedule }: any) { {m.title.romaji} </h1> <p className="text-gray-400 group-hover:text-action/80 transition-all duration-200 ease-out"> - Ep {s.episode} {timeStamptoHour(s.airingAt)} + Ep {s?.episode}{" "} + {timeStamptoHour(s.airingAt)} </p> </div> </Link> <p key={`p_${s.id}_${index}`} className={`absolute translate-x-full top-1/2 -translate-y-1/2 h-full w-0.5 ${ - isAired(time) ? "bg-action" : "bg-gray-600" // Add a class for currently airing anime + isAired(+time) ? "bg-action" : "bg-gray-600" // Add a class for currently airing anime }`} ></p> </> |