From ca6900c1c50c6c4a2c26a84ed1d9ec50c8e7f0e9 Mon Sep 17 00:00:00 2001 From: paulcjy Date: Thu, 19 Sep 2024 01:19:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=83=80=EC=9E=85=20=EC=A7=80=EC=A0=95?= =?UTF-8?q?=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/LovelyCalendar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/LovelyCalendar.tsx b/components/LovelyCalendar.tsx index 195210b..4db54db 100644 --- a/components/LovelyCalendar.tsx +++ b/components/LovelyCalendar.tsx @@ -4,7 +4,7 @@ import Link from 'next/link' import { useState, useEffect, useMemo } from 'react' import { ChevronLeft, ChevronRight, Heart } from 'lucide-react' import { allBibles } from 'contentlayer/generated' -import { Month } from './calendar/types' +import { Day, Month } from './calendar/types' export const LovelyCalendar = () => { const [currentDate, setCurrentDate] = useState(new Date()) @@ -69,7 +69,7 @@ export const LovelyCalendar = () => { updateCalendar() }, [currentDate]) - const getDateStyle = (day) => { + const getDateStyle = (day: Day) => { if (!day) return '' const date = day.date @@ -91,7 +91,7 @@ export const LovelyCalendar = () => { return styles.join(' ') } - const changeMonth = (delta) => { + const changeMonth = (delta: number) => { setCurrentDate( new Date(currentDate.getFullYear(), currentDate.getMonth() + delta, 1) )