mirror of
https://github.com/ozntel/oz-calendar.git
synced 2026-07-22 07:40:24 +00:00
Missing Type
This commit is contained in:
parent
baf260d491
commit
09927a1fae
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import Calendar from 'react-calendar';
|
||||
import Calendar, { CalendarTileProperties } from 'react-calendar';
|
||||
import { RxDotFilled } from 'react-icons/rx';
|
||||
import OZCalendarPlugin from '../main';
|
||||
import useForceUpdate from '../hooks/forceUpdate';
|
||||
|
|
@ -28,7 +28,7 @@ export default function MyCalendar(params: { plugin: OZCalendarPlugin }) {
|
|||
|
||||
useEffect(() => forceUpdate(), [plugin.OZCALENDARDAYS_STATE]);
|
||||
|
||||
const customTileContent = ({ date, view }) => {
|
||||
const customTileContent = ({ date, view }: CalendarTileProperties) => {
|
||||
if (view === 'month') {
|
||||
const dateString = dayjs(date).format('YYYY-MM-DD');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue