diff --git a/src/agenda/reservation-list/index.tsx b/src/agenda/reservation-list/index.tsx index de43dfd1c8..eb3fbb52c9 100644 --- a/src/agenda/reservation-list/index.tsx +++ b/src/agenda/reservation-list/index.tsx @@ -7,12 +7,15 @@ import {ActivityIndicator, View, FlatList, StyleProp, ViewStyle, TextStyle, Nati // @ts-expect-error import {extractComponentProps} from '../../component-updater'; +// @ts-expect-error import {sameDate} from '../../dateutils'; +// @ts-expect-error import {toMarkingFormat} from '../../interface'; import styleConstructor from './style'; import Reservation, {ReservationProps} from './reservation'; import {ReservationItemType, ReservationsType} from 'agenda'; + export interface DayReservations { reservation?: ReservationItemType; date?: XDate; diff --git a/src/agenda/reservation-list/reservation.tsx b/src/agenda/reservation-list/reservation.tsx index acb8f8f039..047b9ad27b 100644 --- a/src/agenda/reservation-list/reservation.tsx +++ b/src/agenda/reservation-list/reservation.tsx @@ -7,12 +7,15 @@ import {View, Text} from 'react-native'; // @ts-expect-error import {xdateToData} from '../../interface'; +// @ts-expect-error import {isToday} from '../../dateutils'; +// @ts-expect-error import {RESERVATION_DATE} from '../../testIDs'; import styleConstructor from './style'; import {Theme} from '../../types'; import {DayReservations} from './index'; + export interface ReservationProps { item: DayReservations; /** Specify theme properties to override specific styles for reservation parts. Default = {} */ diff --git a/src/calendar-list/index.tsx b/src/calendar-list/index.tsx index 1120e94391..726a1c3a51 100644 --- a/src/calendar-list/index.tsx +++ b/src/calendar-list/index.tsx @@ -9,13 +9,16 @@ import {FlatList, Platform, Dimensions, View, ViewStyle, LayoutChangeEvent, Flat import {extractComponentProps} from '../component-updater'; // @ts-expect-error import {xdateToData, parseDate} from '../interface'; +// @ts-expect-error import {page, sameDate} from '../dateutils'; +// @ts-expect-error import {STATIC_HEADER} from '../testIDs'; import styleConstructor from './style'; import Calendar, {CalendarProps} from '../calendar'; import CalendarListItem from './item'; import CalendarHeader from '../calendar/header/index'; + const {width} = Dimensions.get('window'); const CALENDAR_WIDTH = width; const CALENDAR_HEIGHT = 360; diff --git a/src/calendar/day/index.tsx b/src/calendar/day/index.tsx index 6c475e7ebb..f1777d0fdd 100644 --- a/src/calendar/day/index.tsx +++ b/src/calendar/day/index.tsx @@ -4,9 +4,12 @@ import XDate from 'xdate'; import memoize from 'memoize-one'; import React, {Component} from 'react'; + // @ts-expect-error import {shouldUpdate} from '../../component-updater'; +// @ts-expect-error import {isToday as dateutils_isToday} from '../../dateutils'; +// @ts-expect-error import {xdateToData} from '../../interface'; // @ts-expect-error import {SELECT_DATE_SLOT} from '../../testIDs'; @@ -14,6 +17,7 @@ import BasicDay, {BasicDayProps} from './basic'; import PeriodDay from './period'; import {MarkingProps} from './marking'; + const basicDayPropsTypes = _.omit(BasicDay.propTypes, 'date'); export interface DayProps extends Omit { diff --git a/src/calendar/index.tsx b/src/calendar/index.tsx index 69047bd0cd..9d72e0b665 100644 --- a/src/calendar/index.tsx +++ b/src/calendar/index.tsx @@ -8,7 +8,9 @@ import {View, ViewStyle, StyleProp} from 'react-native'; // @ts-expect-error import GestureRecognizer, {swipeDirections} from 'react-native-swipe-gestures'; +// @ts-expect-error import {page, isGTE, isLTE, sameMonth} from '../dateutils'; +// @ts-expect-error import {xdateToData, parseDate, toMarkingFormat} from '../interface'; // @ts-expect-error import {getState} from '../day-state-manager';