Skip to content

Commit

Permalink
fix: 타입 지정 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcjy committed Sep 18, 2024
1 parent 91cdb06 commit ca6900c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/LovelyCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -69,7 +69,7 @@ export const LovelyCalendar = () => {
updateCalendar()
}, [currentDate])

const getDateStyle = (day) => {
const getDateStyle = (day: Day) => {
if (!day) return ''

const date = day.date
Expand All @@ -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)
)
Expand Down

0 comments on commit ca6900c

Please sign in to comment.