diff options
| author | Factiven <[email protected]> | 2023-12-24 13:03:54 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-12-24 13:03:54 +0700 |
| commit | 50a0f0240d7fef133eb5acc1bea2b1168b08e9db (patch) | |
| tree | 307e09e505580415a58d64b5fc3580e9235869f1 /components/home/schedule.js | |
| parent | Update README.md (#104) (diff) | |
| download | moopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.tar.xz moopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.zip | |
migrate to typescript
Diffstat (limited to 'components/home/schedule.js')
| -rw-r--r-- | components/home/schedule.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/home/schedule.js b/components/home/schedule.js index bb35d08..19260c2 100644 --- a/components/home/schedule.js +++ b/components/home/schedule.js @@ -4,7 +4,7 @@ import { convertUnixToTime } from "../../utils/getTimes"; import { PlayIcon } from "@heroicons/react/20/solid"; import { BackwardIcon, ForwardIcon } from "@heroicons/react/24/solid"; import Link from "next/link"; -import { useCountdown } from "../../utils/useCountdownSeconds"; +import { useCountdown } from "../../lib/hooks/useCountdownSeconds"; export default function Schedule({ data, scheduleData, anime, update }) { let now = new Date(); @@ -13,7 +13,7 @@ export default function Schedule({ data, scheduleData, anime, update }) { "Schedule"; currentDay = currentDay.replace("Schedule", ""); - const [day, hours, minutes, seconds] = useCountdown( + const { day, hours, minutes, seconds } = useCountdown( anime[0]?.airingSchedule.nodes[0]?.airingAt * 1000 || Date.now(), update ); |